Idea for automated fix
Just found this in the Symfony codebase.
Not sure it is already done in PHPUNIT_QUALITY Set
Thanks for sharing. How is useful to wide public? Could you share PR with change from Symfony?
cc @alexandre-daubois
It was detected here: https://github.com/symfony/symfony/pull/58303/files, along with some other errors. The most common in the PR is that expected and actual are reversed in some calls. I know this is a common error, this could be nice to have a Rector rule as well for this?
I know this is a common error, this could be nice to have a Rector rule as well for this?
Not sure this can be detected
It was detected by PHPStorm automated tool. I think you can detect this by checking if the actual parameter is a constant of any kind, and expected is variable
Makes sense
Alright then! Feel free to kick off PR 👍
rector-symfony repository seems like best target
Closing as accepted to avoid keep issue tracker focus on unclear issues that needs our attention.
Feel free to send PR to https://github.com/rectorphp/rector-symfony with it :+1:
This issue has been automatically locked because it has been closed for 150 days. Please open a new issue if you have a similar problem.