diff --git a/extension.neon b/extension.neon index 30f2139d..28b45c52 100644 --- a/extension.neon +++ b/extension.neon @@ -13,6 +13,10 @@ parameters: consoleApplicationLoader: null featureToggles: skipCheckGenericClasses: + - Symfony\Component\Form\AbstractType + - Symfony\Component\Form\AbstractTypeExtension + - Symfony\Component\Form\FormTypeExtensionInterface + - Symfony\Component\Form\FormTypeInterface - Symfony\Component\OptionsResolver\Options stubFiles: - stubs/Psr/Cache/CacheItemInterface.stub @@ -31,6 +35,8 @@ parameters: - stubs/Symfony/Component/Form/Exception/ExceptionInterface.stub - stubs/Symfony/Component/Form/Exception/RuntimeException.stub - stubs/Symfony/Component/Form/Exception/TransformationFailedException.stub + - stubs/Symfony/Component/Form/AbstractType.stub + - stubs/Symfony/Component/Form/AbstractTypeExtension.stub - stubs/Symfony/Component/Form/DataTransformerInterface.stub - stubs/Symfony/Component/Form/FormBuilderInterface.stub - stubs/Symfony/Component/Form/FormInterface.stub diff --git a/stubs/Symfony/Component/Form/AbstractType.stub b/stubs/Symfony/Component/Form/AbstractType.stub new file mode 100644 index 00000000..b495ea36 --- /dev/null +++ b/stubs/Symfony/Component/Form/AbstractType.stub @@ -0,0 +1,11 @@ + + */ +abstract class AbstractType implements FormTypeInterface +{ +} diff --git a/stubs/Symfony/Component/Form/AbstractTypeExtension.stub b/stubs/Symfony/Component/Form/AbstractTypeExtension.stub new file mode 100644 index 00000000..434b80a8 --- /dev/null +++ b/stubs/Symfony/Component/Form/AbstractTypeExtension.stub @@ -0,0 +1,11 @@ + + */ +abstract class AbstractTypeExtension implements FormTypeExtensionInterface +{ +} diff --git a/stubs/Symfony/Component/Form/FormTypeExtensionInterface.stub b/stubs/Symfony/Component/Form/FormTypeExtensionInterface.stub index 25b6f25d..ca0d3376 100644 --- a/stubs/Symfony/Component/Form/FormTypeExtensionInterface.stub +++ b/stubs/Symfony/Component/Form/FormTypeExtensionInterface.stub @@ -2,19 +2,27 @@ namespace Symfony\Component\Form; +/** + * @template T + */ interface FormTypeExtensionInterface { /** + * @param FormBuilderInterface $builder * @param array $options */ public function buildForm(FormBuilderInterface $builder, array $options): void; /** + * @param FormView $view + * @param FormInterface $form * @param array $options */ public function buildView(FormView $view, FormInterface $form, array $options): void; /** + * @param FormView $view + * @param FormInterface $form * @param array $options */ public function finishView(FormView $view, FormInterface $form, array $options): void; diff --git a/stubs/Symfony/Component/Form/FormTypeInterface.stub b/stubs/Symfony/Component/Form/FormTypeInterface.stub index cebbc1c2..899f50d8 100644 --- a/stubs/Symfony/Component/Form/FormTypeInterface.stub +++ b/stubs/Symfony/Component/Form/FormTypeInterface.stub @@ -2,19 +2,27 @@ namespace Symfony\Component\Form; +/** + * @template T + */ interface FormTypeInterface { /** + * @param FormBuilderInterface $builder * @param array $options */ public function buildForm(FormBuilderInterface $builder, array $options): void; /** + * @param FormView $view + * @param FormInterface $form * @param array $options */ public function buildView(FormView $view, FormInterface $form, array $options): void; /** + * @param FormView $view + * @param FormInterface $form * @param array $options */ public function finishView(FormView $view, FormInterface $form, array $options): void;