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
Adjust Parentheses::getOwner() to allow for T_FN as parentheses owner in older PHPCS versions.
Array::getDoubleArrowPtr(): Take the double arrow in arrow functions into account when searching for array double arrows.
Take arrow functions into account anywhere and everywhere code is in place to skip (over) closed scopes.
For most of these: can't just check for T_FN, will also need to check for T_STRING with fn content and parentheses opener as next effective token.
Similar, can't just check T_FN_ARROW, but will also need to check for T_DOUBLE_ARROW preceded by parentheses, preceded by T_FN/T_STRING with content fn.
See upstream issue: squizlabs/PHP_CodeSniffer#2523
Relevant commits which need to be emulated & made backward compatible (in as far possible):
File::getMethodParameters()
+ associated tests)File::getMethodProperties()
+ associated tests)File::getDeclarationName()
+ new tests needed)File::isReference()
+ associated tests)File::getMethodProperties()
)File::findEndOfStatement()
+ associated tests)The upstream changes are expected to be released in PHPCS 3.5.3.
Upstream will probably also contain a
$functionKeyword
token array (not yet implemented).The text was updated successfully, but these errors were encountered: