Skip to content

Commit

Permalink
[Php81] Exclude Doctrine ODM MongoDB Document and EmbeddedDocument fr…
Browse files Browse the repository at this point in the history
…om ReadOnlyPropertyRector (#6721)
  • Loading branch information
mickverm authored Feb 6, 2025
1 parent 1964b34 commit ecd8b37
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace Rector\Tests\Php81\Rector\Property\ReadOnlyPropertyRector\Fixture;

use Doctrine\ODM\MongoDB\Mapping\Annotations\Document;

#[Document]
class SkipDoctrineOdmMongodbDocument
{
private int $amount;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace Rector\Tests\Php81\Rector\Property\ReadOnlyPropertyRector\Fixture;

use Doctrine\ODM\MongoDB\Mapping\Annotations\EmbeddedDocument;

#[EmbeddedDocument]
class SkipDoctrineOdmMongodbEmbeddedDocument
{
private int $amount;
}
2 changes: 2 additions & 0 deletions src/NodeManipulator/PropertyManipulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
'Doctrine\ORM\Mapping\Table',
'Doctrine\ORM\Mapping\MappedSuperclass',
'Doctrine\ORM\Mapping\Embeddable',
'Doctrine\ODM\MongoDB\Mapping\Annotations\Document',
'Doctrine\ODM\MongoDB\Mapping\Annotations\EmbeddedDocument',
];

public function __construct(
Expand Down

0 comments on commit ecd8b37

Please sign in to comment.