diff --git a/config/sets/doctrine-mongodb-annotations-to-attributes.php b/config/sets/doctrine-mongodb-annotations-to-attributes.php index f881065b..9fe74f8a 100644 --- a/config/sets/doctrine-mongodb-annotations-to-attributes.php +++ b/config/sets/doctrine-mongodb-annotations-to-attributes.php @@ -4,13 +4,18 @@ use Rector\Config\RectorConfig; use Rector\Php80\Rector\Class_\AnnotationToAttributeRector; +use Rector\Php80\Rector\Property\NestedAnnotationToAttributeRector; +use Rector\Php80\ValueObject\AnnotationPropertyToAttributeClass; use Rector\Php80\ValueObject\AnnotationToAttribute; +use Rector\Php80\ValueObject\NestedAnnotationToAttribute; return static function (RectorConfig $rectorConfig): void { $rectorConfig->ruleWithConfiguration(NestedAnnotationToAttributeRector::class, [ new NestedAnnotationToAttribute('Doctrine\ODM\MongoDB\Mapping\Annotations\Indexes', [ - new AnnotationPropertyToAttributeClass('Doctrine\ODM\MongoDB\Mapping\Annotations\Index'), - new AnnotationPropertyToAttributeClass('Doctrine\ODM\MongoDB\Mapping\Annotations\UniqueIndex'), + new AnnotationPropertyToAttributeClass( + 'Doctrine\ODM\MongoDB\Mapping\Annotations\Index'), + new AnnotationPropertyToAttributeClass( + 'Doctrine\ODM\MongoDB\Mapping\Annotations\UniqueIndex'), ], true), ]); $rectorConfig->ruleWithConfiguration(AnnotationToAttributeRector::class, [