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
ShouldNotHappenException #3909
Comments
How does functions.php look? |
In the original file, there were a vast amount of a trash code. So I distilled a MVE where the same error occurs looks as follows: <?php
if (!function_exists('pg_escape_string')) {
function pg_escape_string() {
return '';
}
}
?> Of course, the parameters and content of the function definition was originally much more meaningfull, but the problem is still present even when it is reduced to this form. |
Fixed: phpstan/phpstan-src@0e42941 Let me know if you have any other issues :) |
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. |
PHPstan
Installed via composer:
"name": "phpstan/phpstan",
"version": "0.12.48",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan.git",
"reference": "d364cfbac9ffd869570cdfea7eaa6541c3dac666"
}
Tried to run analysis on one very old project part:
./phpstan analyse ~/functions.php --debug
What happened:
The text was updated successfully, but these errors were encountered: