You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to check if an array contains any NULL values. The in_array function can be used with the strict flag set.
However PHPStan is not picking up that the values cannot be null inside of the array.
The output should mention string is givin instead of string|null.
Did PHPStan help you today? Did it make you happy in any way?
PHPStan is the best! We've worked around this issue with the help of Webmozart assert, but it not diminished our excitement in using PHPStan. Great job!
The text was updated successfully, but these errors were encountered:
Bug report
When trying to check if an array contains any NULL values. The in_array function can be used with the strict flag set.
However PHPStan is not picking up that the values cannot be null inside of the array.
Code snippet that reproduces the problem
https://phpstan.org/r/69897217-fd94-497b-9e98-4baa6b2b96db
Expected output
The output should mention string is givin instead of string|null.
Did PHPStan help you today? Did it make you happy in any way?
PHPStan is the best! We've worked around this issue with the help of Webmozart assert, but it not diminished our excitement in using PHPStan. Great job!
The text was updated successfully, but these errors were encountered: