Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic.WhiteSpace.SpreadOperatorSpacingAfter does not ignore spread operator in PHP 8.1 first class callables #3694

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Oct 16, 2022

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

…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
@gsherwood gsherwood added this to Idea Bank in PHPCS v3 Development via automation Dec 18, 2022
@gsherwood gsherwood added this to the 3.7.2 milestone Dec 18, 2022
@gsherwood gsherwood changed the title PHP 8.1 | Generic/SpreadOperatorSpacingAfter: ignore spread operator in first class callables Generic.WhiteSpace.SpreadOperatorSpacingAfter does not ignore spread operator in PHP 8.1 first class callables Dec 18, 2022
gsherwood added a commit that referenced this pull request Dec 18, 2022
@gsherwood gsherwood merged commit 1e1b942 into squizlabs:master Dec 18, 2022
PHPCS v3 Development automation moved this from Idea Bank to Ready for Release Dec 18, 2022
@gsherwood
Copy link
Member

Thanks for fixing this.

@jrfnl jrfnl deleted the feature/generic-spreadoperatorspacingafter-ignore-first-class-callables branch December 18, 2022 23:34
@jrfnl
Copy link
Contributor Author

jrfnl commented Dec 18, 2022

yvw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
PHPCS v3 Development
Ready for Release
Development

Successfully merging this pull request may close these issues.

None yet

2 participants