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
The shape of a locally defined array is not properly inferred in version 1.4. This worked before in 1.3.3.
https://phpstan.org/r/c0dbbff6-e525-4a9c-a466-3453f44ebb75
No errors
I'm currently upgrading to 1.4 and once again phpstan finds more errors in my code.
The text was updated successfully, but these errors were encountered:
@Khartir After the latest commit in 1.6.x, PHPStan now reports different result with your code snippet:
@@ @@ -22: Parameter #2 $haystack of function in_array expects array, array<int, string>|bool|string given. +No errors
Sorry, something went wrong.
phpstan/phpstan-src@57567df
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
The shape of a locally defined array is not properly inferred in version 1.4. This worked before in 1.3.3.
Code snippet that reproduces the problem
https://phpstan.org/r/c0dbbff6-e525-4a9c-a466-3453f44ebb75
Expected output
No errors
Did PHPStan help you today? Did it make you happy in any way?
I'm currently upgrading to 1.4 and once again phpstan finds more errors in my code.
The text was updated successfully, but these errors were encountered: