-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHPCodesniffer errors in Atom #104
Comments
This section is only supported in WPCS 0.12.0. The latest release is 0.11.0, but I run the develop branch of WPCS, so don't get any errors. Chances are, 0.12.0 should be out before UP 2, but if not, we can delete that section before release. |
Thanks @GaryJones |
@GaryJones what version of PHP_CodeSniffer are you running? |
2.9.0 |
I am on 2.9.1 and after updating to WPCS 0.12.0 - this is the only error I receive: Error running PHPCS Error: PHP Fatal error: Uncaught Error: Call to undefined function did_action() in /Users/loneduchess/Local Sites/utility-pro-2/app/public/wp-content/themes/utility-pro/vendor/tgmpa/tgm-plugin-activation/class-tgm-plugin-activation.php:2109(…) |
We're trying to fix that in TGMPA. Add the following to the top of it the TGMPA class file: // Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
return;
} See https://github.com/TGMPA/TGM-Plugin-Activation/blob/9f63adeb10dcadd8733757e5c9c23e137cc8faff/class-tgm-plugin-activation.php#L35-L38 and TGMPA/TGM-Plugin-Activation#665 |
Not sure why, but I am receiving these errors only on Utility Pro project in Atom. Other projects I have set up are okay.
https://cl.ly/221C1c0P3o2n
Any ideas @GaryJones ?
The text was updated successfully, but these errors were encountered: