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
PHPstan seems to incorrectly narrow type after if (empty(...)).
https://phpstan.org/r/0554aa13-e165-4f18-b512-059cf0ab243e
Dumped type should remain array<mixed> even after the if test (which may result false).
array<mixed>
No response
The text was updated successfully, but these errors were encountered:
Snippet, that demonstrates practical problem caused by the bug and which will be error-free once the bug is solved: https://phpstan.org/r/5ff9d8fe-dcb7-4dc9-aec1-021c06513f37
Sorry, something went wrong.
Hi, looks like a duplicate of #12771, I prepared a fix already in phpstan/phpstan-src#3901
No branches or pull requests
Bug report
PHPstan seems to incorrectly narrow type after if (empty(...)).
Code snippet that reproduces the problem
https://phpstan.org/r/0554aa13-e165-4f18-b512-059cf0ab243e
Expected output
Dumped type should remain
array<mixed>
even after the if test (which may result false).Did PHPStan help you today? Did it make you happy in any way?
No response
The text was updated successfully, but these errors were encountered: