PHP_CodeSniffer
PHP_CodeSniffer copied to clipboard
PHP 8.1 | Generic/SpreadOperatorSpacingAfter: ignore spread operator in first class callables
... as in that case the spread operator does not apply to a variable/function call and the likelihood of the sniff conflicting with other sniffs which examine the spacing on the inside of parenthesis is high.
Includes unit tests.
Ref:
- https://wiki.php.net/rfc/first_class_callable_syntax
- https://3v4l.org/YTTO1