-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implementsInterface does not pass psalm validation when passed an object #205
Comments
githoober
changed the title
implementsInterface does not validate with psalm when passed an object
implementsInterface does not pass psalm validation when passed an object
Jun 26, 2020
Looks like a psalm bug |
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:
|
I have managed to fix it. Will probably provide a PR: |
Hm, doesn't the second |
Also ran into this issue today. Had to use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The snippet below mimics the logic from
implementsInterface
https://psalm.dev/r/9362046866
With an object passed to
implementsInterface
Assert
produces the following error:With a call
get_class
on the object, psalm validation passes.The text was updated successfully, but these errors were encountered: