Is there a syntax to merge multiple two array in the PHPdoc #9102
-
I was looking for something like https://phpstan.org/r/70a19ee1-f8f7-49e5-a0c5-638b27aee363 The idea would be to refactor different custom types when they have a lot in common. |
Beta Was this translation helpful? Give feedback.
Answered by
ondrejmirtes
Mar 29, 2023
Replies: 2 comments 3 replies
-
There isn't, but you can build it for yourself: https://phpstan.org/developing-extensions/custom-phpdoc-types |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
VincentLanglet
-
@VincentLanglet Did you solved your problem ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There isn't, but you can build it for yourself: https://phpstan.org/developing-extensions/custom-phpdoc-types