Skip to content

Remove redundant conditions from RemoveUnusedCodeByPhpVersionIdVisitor.#2459

Merged
ondrejmirtes merged 1 commit intophpstan:1.10.xfrom
mad-briller:redundant-ifs
Jun 16, 2023
Merged

Remove redundant conditions from RemoveUnusedCodeByPhpVersionIdVisitor.#2459
ondrejmirtes merged 1 commit intophpstan:1.10.xfrom
mad-briller:redundant-ifs

Conversation

@mad-briller
Copy link
Copy Markdown
Contributor

@mad-briller mad-briller commented Jun 16, 2023

an If_ cannot be a classlike or functionlike so checking for these specifically is redundant when we check it's not an If_

@ondrejmirtes ondrejmirtes merged commit b735b66 into phpstan:1.10.x Jun 16, 2023
@ondrejmirtes
Copy link
Copy Markdown
Member

Thank you!

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.

2 participants