Skip to content

Commit

Permalink
enable static return type in Symfony 6.0 set
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Dec 9, 2021
1 parent 5d446e6 commit 0a50dc4
Showing 1 changed file with 35 additions and 25 deletions.
60 changes: 35 additions & 25 deletions config/sets/symfony/symfony6/symfony-return-types.php
Original file line number Diff line number Diff line change
Expand Up @@ -327,31 +327,41 @@
'countErrors',
new IntegerType()
),
// new AddReturnTypeDeclaration(
// 'Symfony\Component\OptionsResolver\OptionsResolver',
// 'setNormalizer',
// new StaticType()
// ),
// new AddReturnTypeDeclaration(
// 'Symfony\Component\OptionsResolver\OptionsResolver',
// 'setAllowedValues',
// new StaticType()
// ),
// new AddReturnTypeDeclaration(
// 'Symfony\Component\OptionsResolver\OptionsResolver',
// 'addAllowedValues',
// new StaticType()
// ),
// new AddReturnTypeDeclaration(
// 'Symfony\Component\OptionsResolver\OptionsResolver',
// 'setAllowedTypes',
// new StaticType()
// ),
// new AddReturnTypeDeclaration(
// 'Symfony\Component\OptionsResolver\OptionsResolver',
// 'addAllowedTypes',
// new StaticType()
// ),
new AddReturnTypeDeclaration(
'Symfony\Component\OptionsResolver\OptionsResolver',
'setNormalizer',
new \Rector\StaticTypeMapper\ValueObject\Type\SimpleStaticType(
'Symfony\Component\OptionsResolver\OptionsResolver'
)
),
new AddReturnTypeDeclaration(
'Symfony\Component\OptionsResolver\OptionsResolver',
'setAllowedValues',
new \Rector\StaticTypeMapper\ValueObject\Type\SimpleStaticType(
'Symfony\Component\OptionsResolver\OptionsResolver'
)
),
new AddReturnTypeDeclaration(
'Symfony\Component\OptionsResolver\OptionsResolver',
'addAllowedValues',
new \Rector\StaticTypeMapper\ValueObject\Type\SimpleStaticType(
'Symfony\Component\OptionsResolver\OptionsResolver'
)
),
new AddReturnTypeDeclaration(
'Symfony\Component\OptionsResolver\OptionsResolver',
'setAllowedTypes',
new \Rector\StaticTypeMapper\ValueObject\Type\SimpleStaticType(
'Symfony\Component\OptionsResolver\OptionsResolver'
)
),
new AddReturnTypeDeclaration(
'Symfony\Component\OptionsResolver\OptionsResolver',
'addAllowedTypes',
new \Rector\StaticTypeMapper\ValueObject\Type\SimpleStaticType(
'Symfony\Component\OptionsResolver\OptionsResolver'
)
),
new AddReturnTypeDeclaration(
'Symfony\Component\PropertyAccess\PropertyPathInterface',
'getLength',
Expand Down

1 comment on commit 0a50dc4

@TomasVotruba
Copy link
Member Author

@TomasVotruba TomasVotruba commented on 0a50dc4 Dec 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes use of rectorphp/rector-src#1441

Ref #81

Please sign in to comment.