phpstan-symfony
phpstan-symfony copied to clipboard
feat: stub DataMapperInterface
- Ensure TData of FormInterface is provided.
- Set TData on mixed since we don't know the type of the child forms.
- Add template for DataMapperInterface.
I've set TData of FormInterface to mixed since each child form can have a different type.
refs: #417
There are two different PRs with this stub: https://github.com/phpstan/phpstan-symfony/pull/422
- Both have the same mistake of not registering the stub.
- Both are slightly different so you should agree first how it should look like.