-
Notifications
You must be signed in to change notification settings - Fork 672
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
False positive for InvalidArgument Error with \DateTimeImmutable #2948
Comments
Hey @jrushlow, can you reproduce the issue on https://psalm.dev ? |
I found these snippets: https://psalm.dev/r/da2890ba9e<?php
function test(\DateTimeInterface $time): void
{
}
test(new \DateTimeImmutable);
|
ah right, thanks, broken an hour ago by 40a7a11 |
thanks for the quick fix! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
False
Error
by psalm when passing a\DateTimeImmutable::class
to a method that expects a\DateTimeInterface::class
. This appeared after composer update:vimeo/psalm dev-master a2a5071 dev-master a0da735 A static analysis tool for finding errors in PHP applications
The above results in:
May be related to issue #2933 although I have not had a chance to dig into it.
The text was updated successfully, but these errors were encountered: