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
Internal error: preg_match(): Argument #2 ($subject) must be of type string, array given #8538
Comments
This bug report is missing a link to reproduction at phpstan.org/try. It will most likely be closed after manual review. |
Can you please provide a piece of code that makes PHPStan crash like this? So ideally, run with |
Some of our devs experience the same issue. We found the line and was able to reproduce when the file contained only this particular code. Have tried to delete cache in /tmp/phpstan*
Replacing strtoupper with hardcoded string "solves" the crash.
|
Reported: symfony/polyfill#422 |
If you install |
Should be fixed: phpstan/phpstan-src@dfcaa30 Please test this on PHPStan 1.10.33. |
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
Using PHPStan 1.9.3 on a gitlab-ci worker. I can execute this fine locally, but on remote it fails with the following backtrace.
Code snippet that reproduces the problem
Expected output
This might be due to typecasting some mongodb output as a string, but I can't confirm.
Did PHPStan help you today? Did it make you happy in any way?
PHPStan is AWESOME! :D
Edit: Shortened up the file paths
The text was updated successfully, but these errors were encountered: