diff --git a/rules-tests/Php81/Rector/Property/ReadOnlyPropertyRector/Fixture/skip_doctrine_embeddable.php.inc b/rules-tests/Php81/Rector/Property/ReadOnlyPropertyRector/Fixture/skip_doctrine_embeddable.php.inc new file mode 100644 index 00000000000..a2fd42d6a82 --- /dev/null +++ b/rules-tests/Php81/Rector/Property/ReadOnlyPropertyRector/Fixture/skip_doctrine_embeddable.php.inc @@ -0,0 +1,17 @@ +amount = $amount; + } +} diff --git a/src/NodeManipulator/PropertyManipulator.php b/src/NodeManipulator/PropertyManipulator.php index c5ab0cd4e82..98a2c167e3e 100644 --- a/src/NodeManipulator/PropertyManipulator.php +++ b/src/NodeManipulator/PropertyManipulator.php @@ -43,6 +43,7 @@ 'Doctrine\ORM\Mapping\Entity', 'Doctrine\ORM\Mapping\Table', 'Doctrine\ORM\Mapping\MappedSuperclass', + 'Doctrine\ORM\Mapping\Embeddable', ]; public function __construct(