Skip to content

Conversation

@sirbrillig
Copy link
Owner

@sirbrillig sirbrillig commented Sep 15, 2020

This replaces the UndefinedVariable sniff code with a new UndefinedUnsetVariable code for undefined variables that are used within the unset() function. Technically this is legal PHP, but it may be a sign of a typo. This sniff code allows refined control of such warnings.

Fixes #174

@sirbrillig sirbrillig merged commit a07fe65 into master Sep 15, 2020
@sirbrillig sirbrillig deleted the add-unset-code branch September 15, 2020 16:05
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.

Unsetting undefined variable is not an issue

2 participants