Arbitrary array combinations that correlate with the type key #8230
Unanswered
timuradilev
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Currently, Psalm instantly collapse your notation into a single shape: https://psalm.dev/r/5ee0741dc3 I'm not sure what would happen if Psalm stopped doing that, it could be a good experiment if you're up for it. (It's done in TypeCombiner::combine) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the example below depending on the type's value correct keys are queried.
https://psalm.dev/r/35b374c933
Is Psalm capable of learning that the code is correct? Are there any workarounds for the problem?
Beta Was this translation helpful? Give feedback.
All reactions