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
Isset on parse_url returned type not working #8068
Comments
Eliminate |
@ondrejmirtes Thx for the rocket fast response 🚀 . That check is not required for |
Yeah, I guess it could be improved :) |
Make array access tolerant with isset Fixes bug phpstan/phpstan#8068
Make array access tolerant with isset Fixes bug phpstan/phpstan#8068
Fixed by phpstan/phpstan-src#1791 |
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
The
isset
returns an error in phpstan on parse_url:I'm not understanding. Found similar issue here from @darkspock maybe he can also tell why he thought it is not an error on phpstan side.
Code snippet that reproduces the problem
https://phpstan.org/r/e895b82e-932d-43a6-b184-c6e1a20ecc4b
Expected output
No error should be returned.
Did PHPStan help you today? Did it make you happy in any way?
Adding phpstan to a external project not using static code analyse yet and see lot of things which can improve also from architecture point of view avoiding inheritance and use strict type classes.
The text was updated successfully, but these errors were encountered: