-
Notifications
You must be signed in to change notification settings - Fork 92
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
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
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 |
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
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 creds to @roerbakei ;) refs: phpstan#417
Created a PR with @roerbakei his suggested change ( adding the stub file for the |
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: