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
The sniff WordPress.Arrays.ArrayDeclaration does not terminate for the following code:
$a = array(
'key' =>
);
Tested with wpcs 0.9: phpcs --standard=Wordpress-Core --sniffs=WordPress.Arrays.ArrayDeclaration <file>
I do not get any error message and the phpcs thread starts to use 100% of a cpu core. In conjunction with SublimeLinter it also causes to allocate a lot of memory (probably Sublime Text's fault) which slows down the whole system even more. It only seems to occur when you have an array with closing parentheses and you start to add new items. Once you write the T_DOUBLE_ARROW without a trailing value the sniff causes problems. If I remove the lines 276-316 the sniff terminates again without any errors but I am not sure about exact cause.
The text was updated successfully, but these errors were encountered:
The sniff WordPress.Arrays.ArrayDeclaration does not terminate for the following code:
Tested with wpcs 0.9:
phpcs --standard=Wordpress-Core --sniffs=WordPress.Arrays.ArrayDeclaration <file>
I do not get any error message and the phpcs thread starts to use 100% of a cpu core. In conjunction with SublimeLinter it also causes to allocate a lot of memory (probably Sublime Text's fault) which slows down the whole system even more. It only seems to occur when you have an array with closing parentheses and you start to add new items. Once you write the
T_DOUBLE_ARROW
without a trailing value the sniff causes problems. If I remove the lines 276-316 the sniff terminates again without any errors but I am not sure about exact cause.The text was updated successfully, but these errors were encountered: