Skip to content
Discussion options

You must be logged in to vote

Your example definitely can't work because you're doing echo there, not return;. But to my surprise, return doesn't work either: https://phpstan.org/r/ee716f2f-3cf4-4b58-ade2-d1375bc60e05

At least array_key_exists works: https://phpstan.org/r/79ccf4eb-a8ac-4c80-849c-a35c57812ea4

Feel free to open a bug report about the isset example.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@KeironLowe
Comment options

Answer selected by KeironLowe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants