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

PHPCS 4.x | File::isReference(): simplify code #3338

Closed

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented May 9, 2021

Commit 08824f3 added support for T_USE tokens for closures being parentheses owners and PR #3104 fixed this up for non-closure use.

As the File::getMethodParameters() method also supports closure use parameters already, the code in the File::isReference() method can now be simplified.

The existing unit tests already cover this.

@gsherwood gsherwood added this to the 4.0.0 milestone May 11, 2021
Commit 08824f3 added support for `T_USE` tokens for closures being parentheses owners.

As the `File::getMethodParameters()` method also supports closure `use` parameters already, the code in the `File::isReference()` method can now be simplified.

The existing unit tests already cover this.
@jrfnl
Copy link
Contributor Author

jrfnl commented Dec 2, 2023

Closing as replaced by PHPCSStandards/PHP_CodeSniffer#43

@jrfnl jrfnl closed this Dec 2, 2023
@jrfnl jrfnl deleted the phpcs-4.x/file-isreference-simplify branch December 2, 2023 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants