-
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
Undefined property : $input_superglobals #6
Comments
I'm seeing the same issue. It looks like the affected sniff is extending WordPressCS\WordPress\Sniff from https://github.com/WordPress/WordPress-Coding-Standards but that base class has been refactored (as of v3.0.0) to remove the $input_superglobals property. A work around for now is to downgrade to v2.3.0, e.g. by specifying this in composer.json:
|
Workaround to address issue elegantthemes#6 elegantthemes#6
Thanks for pointing out the workaround, @divibooster 👍 |
Glad it helped, @stracker-phil, and thanks for setting up the fork :) |
Ha, nice job on spotting the fork 😄 |
Cool, I'll check that out shortly :) |
Getting error in a file which is in marketplace test files instead of showing an error in my file
FILE: ...\app\public\wp-content\plugins\my-plugin\my-plugin.php
FOUND 1 ERROR AFFECTING 1 LINE
1 | ERROR | An error occurred during processing; checking has been
| | aborted. The error message was: Undefined property:
| | ET\ElegantThemes\Sniffs\ValidatedSanitizedInputSniff::$input_superglobals
| | in C:\Users\pc\Local
| | Sites\divi-assistant-developement\app\public\wp-content\plugins\marketplace-phpcs\Sniffs\ValidatedSanitizedInputSniff.php
| | on line 80
The text was updated successfully, but these errors were encountered: