Skip to content

Commit

Permalink
fix class reference
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Dec 25, 2023
1 parent fd486b3 commit c1ffecb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions config/sets/doctrine-mongodb-annotations-to-attributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -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, [
Expand Down

0 comments on commit c1ffecb

Please sign in to comment.