We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
See https://getrector.com/demo/e8d55b28-49e1-46ff-81df-2866f17b85f3
<?php final class DemoFile { public function run() { if (($value = "foo") !== null) { echo $value; } } }
RemoveAlwaysTrueIfConditionRector
The Rector should either not touch the code or extract the assignment before removing the if-statement.
The text was updated successfully, but these errors were encountered:
Closes #3336 Fixes rectorphp/rector#7757
3b14410
4210e53
Successfully merging a pull request may close this issue.
Bug Report
Minimal PHP Code Causing Issue
See https://getrector.com/demo/e8d55b28-49e1-46ff-81df-2866f17b85f3
Responsible rules
RemoveAlwaysTrueIfConditionRector
Expected Behavior
The Rector should either not touch the code or extract the assignment before removing the if-statement.
The text was updated successfully, but these errors were encountered: