-
Notifications
You must be signed in to change notification settings - Fork 91
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
FormError is not subtype of native type T of FormError|FormErrorIterator. #416
Comments
Not sure what's going on here. The type If I do this:
It outputs: Can you try to And tell me the versions of Symfony packages you're using. |
Also: \PHPStan\dumpType($errors);
foreach ($errors as $error) {
\PHPStan\dumpType($error);
} Correctly outputs:
|
and for phpstan:
|
I'm not able to reproduce this problem. Please create a small reproducing repository that shows this problem for you. Thanks. |
Sure thing, here it is: |
Any suggestions or can I help with anything else? This is the last issue that keeps me from upgrading to v2 |
Hi!
I'm in the process of upgrading to phpstan 2.
One error that I couldn't find any solution yet is the following.
It was working on the latest 1.x versions
After phpstan 2 I get the following error:
I use the
@var
typehint for phpstorm, to have autocompletion. How can I fix this or is this a bug?Thanks for your help
The text was updated successfully, but these errors were encountered: