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
Run phpcs --standard=Magento2 Foo.php for the following sample file
<?phpnamespaceFoo\Bar;
class Foo
{
protectedfunctionfoo()
{
return1;
}
}
Expected result
phpcs complains about a missing comment block.
Actual result
A sniff fails with an error message:
An error occurred during processing; checking has been aborted. The error message was: Undefined index: comment_closer in /path/to/magento-coding-standard/Magento2/Helpers/Commenting/PHPDocFormattingValidator.php on line 142
Alternatively, in some situations the phpcs process hangs in an eternal loop. (Due to ignoring the error and going into the following for loop with bad limits.)