Replies: 3 comments 3 replies
-
You still don't get it. |
Beta Was this translation helpful? Give feedback.
2 replies
-
If this normalization would be done for level >= 7, I would be super fine with it. Unfortunatelly, it is currently applied also for level 2, see https://phpstan.org/r/35f7458d-3aa2-476f-a528-17a271db3203 |
Beta Was this translation helpful? Give feedback.
1 reply
-
I think this issue is related with https://phpstan.org/r/b4d55043-abda-445e-ac8b-b78f8552a745 . |
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
-
continue of #4377
In extreme case, type can be defined by
A|object
to explicitly state we expectA
, but still allow anyobject
.This is enough for parameter validation, but when this type is used for object access, this information is not superfluous. This is also how IDEs work (checked Netbeans and PHPStorm).
Please rethink my POV for a few seconds.
Beta Was this translation helpful? Give feedback.
All reactions