Replies: 1 comment 2 replies
-
You can do that with templates (https://psalm.dev/r/d8e2d7c1cb) but it's not very convenient. |
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
-
My snippet: https://psalm.dev/r/79ceb448ff.
I would like to check if the property is not null through the
hasFoo
function and get the (not-null) value withgetFoo
.What can I do to make Psalm understand that the returning
getFoo
value is not null?Beta Was this translation helpful? Give feedback.
All reactions