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/001ae62c-7857-4ce2-b4c1-8be77fd37568
<?php final class DemoFile { public function run() { $a = ['a', 'b']; echo in_array('a', [...$a]); } }
SingleInArrayToCompareRector
Either no change or
<?php final class DemoFile { public function run() { $a = ['a', 'b']; echo in_array('a', $a); } }
The text was updated successfully, but these errors were encountered:
It should be skipped, should can be checked by if there is item is variadic, could you try provide a patch? Thank you.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Bug Report
Minimal PHP Code Causing Issue
See https://getrector.com/demo/001ae62c-7857-4ce2-b4c1-8be77fd37568
Responsible rules
SingleInArrayToCompareRector
Expected Behavior
Either no change or
The text was updated successfully, but these errors were encountered: