Skip to content

Commit

Permalink
Added return type declaration rules for FormTypeInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
stollr committed Sep 27, 2024
1 parent 352a84c commit b9704e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/sets/symfony/symfony6/symfony-return-types.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit b9704e4

Please sign in to comment.