Open pplotka opened 2 years ago
Check this file: https://github.com/psalm/psalm-plugin-symfony/blob/master/src/Stubs/common/Component/Form/FormInterface.stubphp#L14
Because forms are stubbed, psalm will think it is mixed
.
Solution: just add @var
for value.
Better way would be to tell psalm what kind of data you expect:
/** @extends AbstractType<ProductAttributeValueInterface> */
class YourFormType extends AbstractType{}
I use this plugin in the Sylius project, but this is not important (in my opinion).
I got the error:
$formAttribute
is Symfony Form typeAssert::isInstanceOf
is from https://github.com/webmozarts/assertWhen I disable this plugin Psalm can inherit type correctly.