You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran PHPCS on all of the WordPress themes that have been updated in the last two years. When doing so I got a PHP notice while processing certain JS files. I did not write the code and do not have access to change it.
When running PHPCS on theme-customizer.js I get the following errors while using PHPCS 2.7.1
Processing theme-customizer.js PHP Notice: Undefined index: bracket_closer in CodeSniffer/Tokenizers/JS.php on line 1078
Notice: Undefined index: bracket_closer in CodeSniffer/Tokenizers/JS.php on line 1078
PHP Notice: Undefined offset: 480 in CodeSniffer/File.php on line 731
Notice: Undefined offset: 480 in CodeSniffer/File.php on line 731
[JS => 481 tokens in lines]... PHP Notice: Undefined index: content in CodeSniffer/Fixer.php on line 139
Notice: Undefined index: content in CodeSniffer/Fixer.php on line 139
DONE in 4ms (0 errors, 0 warnings)
Here are further list of files that get the same errors.
I ran PHPCS on all of the WordPress themes that have been updated in the last two years. When doing so I got a PHP notice while processing certain JS files. I did not write the code and do not have access to change it.
When running PHPCS on theme-customizer.js I get the following errors while using PHPCS 2.7.1
Here are further list of files that get the same errors.
The text was updated successfully, but these errors were encountered: