Skip to content

Commit

Permalink
[Php81] Skip Doctrine Embeddable on ReadOnlyPropertyRector (#6411)
Browse files Browse the repository at this point in the history
* [Php81] Skip Doctrine Embeddable on ReadOnlyPropertyRector

* fixture rename
  • Loading branch information
samsonasik authored Nov 6, 2024
1 parent afe7c46 commit 293eb97
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

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

use Doctrine\ORM\Mapping as ORM;

#[ORM\Embeddable]
class SkipDoctrineEmbeddable
{
#[ORM\Column]
private int $amount;

public function __construct(int $amount)
{
$this->amount = $amount;
}
}
1 change: 1 addition & 0 deletions src/NodeManipulator/PropertyManipulator.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
'Doctrine\ORM\Mapping\Entity',
'Doctrine\ORM\Mapping\Table',
'Doctrine\ORM\Mapping\MappedSuperclass',
'Doctrine\ORM\Mapping\Embeddable',
];

public function __construct(
Expand Down

0 comments on commit 293eb97

Please sign in to comment.