Open kamil-tekiela opened 1 year ago
I found these snippets:
It seems undefined variables are not defaulting to null so mixed is assumed.
In this context $b
could be in scope from a require
on this file. Do you have an example where $b
is definitely undefined?
Do you mean something like this? https://psalm.dev/r/b8733551e9
Message ID: @.***>
I found these snippets:
When using null-coalesce assignment Psalm is unable to determine the type.
https://psalm.dev/r/7cda9cfa9e
But this code works and the type is guaranteed to be DateTime: https://3v4l.org/FMNLM