Replies: 2 comments 1 reply
-
|
How would it be different than just using @var ? |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Use |
Beta Was this translation helpful? Give feedback.
0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
This is what I would like to do, without the need of defining a function that executes that particular condition:
https://psalm.dev/r/c07ff98909
In this case, ideally I would like it to figure out that $v is type 'abcd', but lacking that, an inline type guard would be nice.
Beta Was this translation helpful? Give feedback.
All reactions