New issue
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
Incompatible declaration of RealPathFilterIterator::toRegex() #1635
Comments
I believe we need to do the following change in Infection source code: - protected function toRegex(string $str): string
+ protected function toRegex($str): string
then, Symfony 4-6 will be supported, see https://3v4l.org/gbbY7 Feel free to help |
maks-rafalko
added a commit
that referenced
this issue
Jan 8, 2022
Fixes #1635 because: * Covariance allows a child's method to return a more specific type than the return type of its parent's method. * Contravariance allows a parameter type to be less specific in a child method, than that of its parent.
maks-rafalko
added a commit
that referenced
this issue
Jan 8, 2022
Thank you for fixing this issue so fast! |
Released as 0.25.6 Let us know if it doesn't work please :) |
I've pushed an update of infection to our CI and everything is fine again. Cheers! 🍻 |
Cool, thank you! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
infection.phar --version
)php -v
)Run infection with active filters is not possible anymore for us as we're hitting type incompatibilities (see the output in the summary).
The following command is sufficient to trigger the error:
We're suspecting 6844063 to cause the issue.
Output with issue
The text was updated successfully, but these errors were encountered: