Replies: 1 comment 5 replies
-
Yes. The type you are returning is Consider: https://psalm.dev/r/8e61b8e52d. |
Beta Was this translation helpful? Give feedback.
-
Yes. The type you are returning is Consider: https://psalm.dev/r/8e61b8e52d. |
Beta Was this translation helpful? Give feedback.
-
Template constraints are supposed to let you constrain your templates to a known type, but it appears to have some unexpected results when it comes to arrays. Why is the inferred type of an empty array not covered by
@template T as array
?For example, I get psalm errors with this code: https://psalm.dev/r/9aad57a7b1
Am I misunderstanding something?
Beta Was this translation helpful? Give feedback.
All reactions