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
PHP 7.4 introduces short closures/arrow functions.
The WPCS native sniffs will need to be reviewed to make sure that they handle those correctly.
Any sniff which examines function declarations will need the T_FN token added.
Any sniff which examines the =>T_DOUBLE_ARROW token will need unit tests added to make sure the double arrow in arrow functions is handled correctly or ignored, depending on the purpose of the sniff.
PHPCSUtils contains a few utilities for recognizing arrow functions correctly for those PHPCS versions which don't properly support them yet (=all currently released versions. Support was added in 3.5.3, but very buggy and the latest bug fixes haven't been released yet)
PHP 7.4 introduces short closures/arrow functions.
The WPCS native sniffs will need to be reviewed to make sure that they handle those correctly.
T_FN
token added.=>
T_DOUBLE_ARROW
token will need unit tests added to make sure the double arrow in arrow functions is handled correctly or ignored, depending on the purpose of the sniff.Refs:
Related to #764
The text was updated successfully, but these errors were encountered: