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 commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Changed
Tokens
The Collections::arrayOpenTokensBC(), Collections::arrayTokensBC(), Collections::listOpenTokensBC(), Collections::listTokensBC(), Collections::shortArrayListOpenTokensBC(), Collections::shortArrayTokensBC() and Collections::shortListTokensBC() token arrays will no longer contain the T_OPEN_SQUARE_BRACKET and/or the T_CLOSE_SQUARE_BRACKET token constants if PHP_CodeSniffer 3.7.2 or higher is used. #444
An upstream bugfix makes it unnecessary to check those tokens for being a short array or short list.
Sniff which use these token arrays is combination with using the Arrays/Lists classes, should experience a performance boost on PHPCS 3.7.2+ due to this change.
Other
Minor documentation improvements.
Various small housekeeping and maintenance updates.
Fixed
Utils
The Lists::isShortList() method will now correctly recognize a short list nested in a long list as a short list. #446
Note: this is a parse error in PHP, but the method should still handle this correctly.