You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've recently upgrade psalm to v5 in another project where we use object shapes to determine properties from json_decode objects. So we have an assertion method which then should tell psalm that there are properties with specific types.
Psalm output (using commit 390da64):
INFO: UnusedParam - 12:35 - Param $bar is never referenced in this method
ERROR: RedundantCondition - 15:1 - Type stdClass for $foo is always object{status:Foo::STATUS_*}
INFO: MixedAssignment - 16:1 - Unable to determine the type that $status is being assigned to
INFO: Trace - 17:28 - $status: mixed
INFO: UnusedVariable - 16:1 - $status is never referenced or the value is not used
Hey there,
I've recently upgrade psalm to v5 in another project where we use object shapes to determine properties from
json_decode
objects. So we have an assertion method which then should tell psalm that there are properties with specific types.This does not properly seem to work, at least in my example here:
https://psalm.dev/r/eb1bed0bf9
Is that something which is related to psalm v5 or am I oversee something?
The text was updated successfully, but these errors were encountered: