typehint for mixed array #4375
Answered
by
ondrejmirtes
AnjaLiebermann
asked this question in
Support
-
This method
converts objects to an associative array, which will have different contents depending of the object, which is fed into the method. So while the key is always a string the value can be anything. What is the proper annotation for level 6 in this case?
results in:
I get the same result with this annotation:
|
Beta Was this translation helpful? Give feedback.
Answered by
ondrejmirtes
Jan 14, 2021
Replies: 1 comment 2 replies
-
Hi, |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
AnjaLiebermann
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
mixed[]
should be sufficient from level 6 point of view. Can you try reproducing your problem on phpstan.org?