rectorphp / rector-phpunit

Rector upgrade rules for PHPUnit
https://getrector.com/find-rule?activeRectorSetGroup=phpunit
MIT License
64 stars 47 forks source link

Fix InstanceOfComparisonRector for variables #329

Closed jorgsowa closed 5 months ago

jorgsowa commented 5 months ago

Rule InstanceOfComparisonRector doesn't work when we pass a variable as the second argument to operator instanceof. This PR fixes it.

samsonasik commented 5 months ago

You can fix CI by run:

vendor/bin/rector && composer fix-cs
samsonasik commented 5 months ago

Thank you @jorgsowa