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
{{ message }}
Repository navigation
implementsInterface does not pass psalm validation when passed an object #205
changed the title [-]implementsInterface does not validate with psalm when passed an object[/-][+]implementsInterface does not pass psalm validation when passed an object[/+]on Jun 26, 2020
assert-implements tests is missing a test case for passing an object. I wonder if this case is even supported, as the assertion is made $value is a string:
Activity
[-]implementsInterface does not validate with psalm when passed an object[/-][+]implementsInterface does not pass psalm validation when passed an object[/+]zerkms commentedon Jun 26, 2020
Looks like a psalm bug
githoober commentedon Jun 30, 2020
assert-implements tests is missing a test case for passing an object. I wonder if this case is even supported, as the assertion is made $value is a string:
@psalm-assert class-string<ExpectedType> $valuegithoober commentedon Jun 30, 2020
I have managed to fix it. Will probably provide a PR:
https://psalm.dev/r/4e5e7b02bb
zerkms commentedon Jun 30, 2020
Hm, doesn't the second
@psalm-assertsimply overwrite the first one?devbanana commentedon Jan 25, 2022
Also ran into this issue today. Had to use
get_class()instead.