-
-
Notifications
You must be signed in to change notification settings - Fork 864
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
Uncaught TypeError: preg_replace(): Argument #3 ($subject) must be of type array|string, null given #5525
Comments
This bug report is missing a link to reproduction on phpstan.org. It will most likely be closed after manual review. |
Would be great to create a small reproducing repository that shows the problem, thank you. |
The project I am experiencing this error on is https://github.com/FakerPHP/Faker |
Temporary fix until someone comes up with a better regex: phpstan/phpstan-src@a09a98d (this one fails with "backtrack limit exhausted") |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Bug report
PHPstan crashes before analysis starts. No point in making a reproduction link for this.
I'm running PHP
8.0.9
and PHPstan0.12.96
Click to show stacktrace!
Code snippet that reproduces the problem
Not applicable since PHPstan crashes before analysing files.
Expected output
Static code analysis of the code base.
Did PHPStan help you today? Did it make you happy in any way?
Not today but it has helped me catch a lot of type errors in one of my projects!
The text was updated successfully, but these errors were encountered: