Replies: 1 comment
-
There's an extension for more precise types coming from DB queries: https://github.com/staabm/phpstan-dba As for your question - PHPStan on purpose doesn't complain about possibly non-existent keys. If you have There could be a configuration option that would enable the reporting but no one yet opted into contributing it: #7553 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I have a result from the db, I can try to access any array key and phpstan is ok with that. Is that intended behaviour?
https://phpstan.org/r/2304b061-5681-4db9-97ee-231a426f6960
Beta Was this translation helpful? Give feedback.
All reactions