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

Introduce InvalidLexicalVariablesInClosureUseRule #2757

Conversation

paulbalandan
Copy link
Contributor

@paulbalandan paulbalandan commented Nov 21, 2023

Detect uses of $this, superglobals, and same name with parameters for variables used in use of closures.

Closes phpstan/phpstan#1855

Verified

This commit was signed with the committer’s verified signature.
axlon Choraimy Kroonstuiver
@paulbalandan paulbalandan force-pushed the invalid-lexical-variables-in-closure-use branch from 294d701 to ad236c8 Compare November 21, 2023 09:29
@ondrejmirtes ondrejmirtes merged commit b66432e into phpstan:1.10.x Nov 21, 2023
@ondrejmirtes
Copy link
Member

Thank you!

@paulbalandan paulbalandan deleted the invalid-lexical-variables-in-closure-use branch November 21, 2023 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants