Skip to content

Conversation

@jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Jun 27, 2022

Fixes #3616

Note: I've changed the findNext() call from an exhaustive call to the end of the statement to a faster check for the first non-empty token, which I believe was the actual intention of the function call.

As no tests are failing, I'm fairly certain my suspicion is correct ;-)

Fixes 3616

Note: I've changed the `findNext()` call from an exhaustive call to the end of the statement to a faster check for the first non-empty token, which I believe was the actual _intention_ of the function call.

As no tests are failing, I'm fairly certain my suspicion is correct ;-)
@gsherwood gsherwood added this to the 3.7.2 milestone Jun 27, 2022
gsherwood added a commit that referenced this pull request Jun 27, 2022
@gsherwood gsherwood merged commit bb293b1 into squizlabs:master Jun 27, 2022
@jrfnl jrfnl deleted the feature/3616-squiz-disallowcomparisonassignment-bugfix branch June 27, 2022 22:31
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.

Squiz.PHP.DisallowComparisonAssignment false positive for PHP 8 match expression

2 participants