-
-
Notifications
You must be signed in to change notification settings - Fork 863
New issue
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
False positive on stream_get_meta_data #10887
Comments
When is the |
As you see, the composition of the fields is different from another case when you use fopen and url as parameter. https://www.php.net/manual/en/function.stream-get-meta-data.php |
Yeah, so we just need to make the |
Fixed phpstan/phpstan-src#3024 |
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. |
Bug report
Metadata of stream_socket_client does not contains
uri
item, but phpstan report as error.Code snippet that reproduces the problem
https://phpstan.org/r/67303fbb-4df5-49f9-b451-58a88d118aa7
Expected output
Phpstan does not alert about error
Did PHPStan help you today? Did it make you happy in any way?
PHPStan is awesome!
The text was updated successfully, but these errors were encountered: