-
Like the title says, I would like to be able to declare an object whose properties are all of one type T. Is this a built in type, or will I have to define it by making a class with __get()? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
orklah
May 23, 2022
Replies: 1 comment 1 reply
-
You'll have to create an object in any way, and if your property are dynamic, maybe https://psalm.dev/docs/running_psalm/configuration/#universalobjectcrates could help |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
rzvc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You'll have to create an object in any way, and if your property are dynamic, maybe https://psalm.dev/docs/running_psalm/configuration/#universalobjectcrates could help