From 293eb9701e8035c7d1e57ba0627a637ad70c7c16 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Wed, 6 Nov 2024 20:29:42 +0700 Subject: [PATCH] [Php81] Skip Doctrine Embeddable on ReadOnlyPropertyRector (#6411) * [Php81] Skip Doctrine Embeddable on ReadOnlyPropertyRector * fixture rename --- .../Fixture/skip_doctrine_embeddable.php.inc | 17 +++++++++++++++++ src/NodeManipulator/PropertyManipulator.php | 1 + 2 files changed, 18 insertions(+) create mode 100644 rules-tests/Php81/Rector/Property/ReadOnlyPropertyRector/Fixture/skip_doctrine_embeddable.php.inc 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(