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
This code gives an infinite loop in File.php and prints out this notices over and over again:
PHP Notice: Undefined index: in php_codesniffer/CodeSniffer/File.php on line 3479
PHP Notice: Undefined index: in php_codesniffer/CodeSniffer/File.php on line 3491
(its because of a ; instead of : in the end of the foreach, but it doesn't warn about it correctly)
PHPCS doesn't check syntax unless you have a custom standard that includes a sniff to do it (there is one in the Generic standard) so you're not going to get syntax errors reported if you are using the built-in standards.
Fixing the parse error is the way to work around this of course, but I'll see if I can get PHPCS to stop throwing errors as well.
This code gives an infinite loop in File.php and prints out this notices over and over again:
PHP Notice: Undefined index: in php_codesniffer/CodeSniffer/File.php on line 3479
PHP Notice: Undefined index: in php_codesniffer/CodeSniffer/File.php on line 3491
(its because of a ; instead of : in the end of the foreach, but it doesn't warn about it correctly)
The text was updated successfully, but these errors were encountered: