We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using phpstan@1.7.11 (the bug exists as since 1.7.0 at least)
With the following composer.json
{ "require": { "php": ">=8.0" } }
The error shows up even if manually updating phpstan.neon.dist or phpstan.neon
parameters: phpVersion: 80000 # 8.0
The array_push function was updated in PHP 7.3:
array_push
This function can now be called with only one parameter. Formerly, at least two parameters have been required.
https://phpstan.org/r/68d9ad8d-cc02-4262-af12-bc5086ed4be4
No error output.
The text was updated successfully, but these errors were encountered:
/cc @herndlm I think you touched array_push last: phpstan/phpstan-src#1252
And looks like it's buggy - an array after array_push call can still be empty: https://3v4l.org/idilH
Sorry, something went wrong.
array_unshift
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.
Successfully merging a pull request may close this issue.
Bug report
Using phpstan@1.7.11 (the bug exists as since 1.7.0 at least)
With the following composer.json
The error shows up even if manually updating phpstan.neon.dist or phpstan.neon
The
array_push
function was updated in PHP 7.3:Code snippet that reproduces the problem
https://phpstan.org/r/68d9ad8d-cc02-4262-af12-bc5086ed4be4
Expected output
No error output.
The text was updated successfully, but these errors were encountered: