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 0.12.10
Test for array type before using array_shift() function doesn't work if result of test is stored into variable.
https://phpstan.org/r/77b64d46-6237-41d5-bf76-0dff0b17ad08
All three variants written in code snippet are same but they have not same result.
The text was updated successfully, but these errors were encountered:
This falls under a considered (and complex) feature called Dependent types: https://github.com/phpstan/phpstan/milestone/12
Sorry, something went wrong.
Fixed: phpstan/phpstan-src@a9d5c8b
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.
No branches or pull requests
Bug report
PHPStan 0.12.10
Test for array type before using array_shift() function doesn't work if result of test is stored into variable.
Code snippet that reproduces the problem
https://phpstan.org/r/77b64d46-6237-41d5-bf76-0dff0b17ad08
Expected output
All three variants written in code snippet are same but they have not same result.
The text was updated successfully, but these errors were encountered: