sirbrillig / phpcs-variable-analysis

Find undefined and unused variables with the PHP Codesniffer static analysis tool.
Other
135 stars 14 forks source link

Fix scope closer detection in arrow function detection #298

Closed sirbrillig closed 1 year ago

sirbrillig commented 1 year ago

The arrow function scope closer detection is very difficult. This PR improves it. I'm sure there are still bugs but we'll have to get more test cases to find them.

Fixes https://github.com/sirbrillig/phpcs-variable-analysis/issues/297 Fixes https://github.com/sirbrillig/phpcs-variable-analysis/issues/299