diff --git a/config/sets/symfony/symfony6/symfony-return-types.php b/config/sets/symfony/symfony6/symfony-return-types.php index 33ff968f..ff50c639 100644 --- a/config/sets/symfony/symfony6/symfony-return-types.php +++ b/config/sets/symfony/symfony6/symfony-return-types.php @@ -14,6 +14,7 @@ use PHPStan\Type\ObjectWithoutClassType; use PHPStan\Type\StringType; use PHPStan\Type\UnionType; +use PHPStan\Type\VoidType; use Rector\Config\RectorConfig; use Rector\StaticTypeMapper\ValueObject\Type\SimpleStaticType; use Rector\TypeDeclaration\Rector\ClassMethod\AddReturnTypeDeclarationRector; @@ -279,6 +280,8 @@ new StringType() ), new AddReturnTypeDeclaration('Symfony\Component\Form\FormTypeInterface', 'getParent', $nullableStringType), + new AddReturnTypeDeclaration('Symfony\Component\Form\FormTypeInterface', 'buildForm', new VoidType()), + new AddReturnTypeDeclaration('Symfony\Component\Form\FormTypeInterface', 'configureOptions', new VoidType()), new AddReturnTypeDeclaration( 'Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface', 'isOptional',