Don't @template support array shapes? Or Am I doing something incorrect? #10288
Answered
by
ondrejmirtes
matheusgontijo
asked this question in
Support
-
I'm not being able to make an array shape as a See the code here:
Error:
Is not Or maybe I need to do something else? |
Beta Was this translation helpful? Give feedback.
Answered by
ondrejmirtes
Dec 12, 2023
Replies: 1 comment 1 reply
-
Are you sure you want to use generics and not a type alias? https://phpstan.org/writing-php-code/phpdoc-types#local-type-aliases |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
matheusgontijo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are you sure you want to use generics and not a type alias? https://phpstan.org/writing-php-code/phpdoc-types#local-type-aliases