-
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
Missing stub file for Symfony Form DataMapperInterface #417
Comments
roerbakei
pushed a commit
to roerbakei/phpstan-symfony
that referenced
this issue
Dec 4, 2024
Ensure TData of FormInterface is provided Set TData on mixed since we don't know the type of the child forms Add template for in DataMapperInterface refs: phpstan#417
roerbakei
pushed a commit
to roerbakei/phpstan-symfony
that referenced
this issue
Dec 4, 2024
roerbakei
pushed a commit
to roerbakei/phpstan-symfony
that referenced
this issue
Dec 4, 2024
I have the same issue |
@mmarton you can temporarly resolve your issue by using the stub file @roerbakei provided in his PR -> https://github.com/phpstan/phpstan-symfony/pull/418/files PHPStan docs explain how to add local stub-files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report / Feature Request
When implementing the Symfony Form DataMapperInterface it will currently throw the following error:
When fixing this by defining TData for the FormInterface in the class that implements the DataMapperInterface, the type will be different from the interface resulting in an error:
Unless I'm missing something it looks that a stub for Symfony Form DataMapperInterface is not provided yet.
The text was updated successfully, but these errors were encountered: