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

Improve static declaration checks #267

Merged
merged 9 commits into from Aug 12, 2022
Merged

Conversation

sirbrillig
Copy link
Owner

@sirbrillig sirbrillig commented Aug 10, 2022

The code used to look for static $foobar; variables inside a function is missing for some types of legal assignments. This PR adjusts the sniff to be more liberal in what it allows for a static variable declaration.

It also makes the docs more clear that the sniff ignores static class properties.

Fixes #253
Fixes #158

@sirbrillig sirbrillig marked this pull request as ready for review August 12, 2022 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant