PHP_CodeSniffer icon indicating copy to clipboard operation
PHP_CodeSniffer copied to clipboard

PHP 8.1 | Generic/SpreadOperatorSpacingAfter: ignore spread operator in first class callables

Open jrfnl opened this issue 3 years ago • 0 comments

... 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

jrfnl avatar Oct 16 '22 05:10 jrfnl