diff --git a/rules-tests/Php81/Rector/Property/ReadOnlyPropertyRector/Fixture/skip_entity_mapped_superclass.php.inc b/rules-tests/Php81/Rector/Property/ReadOnlyPropertyRector/Fixture/skip_entity_mapped_superclass.php.inc new file mode 100644 index 00000000000..9e99556a150 --- /dev/null +++ b/rules-tests/Php81/Rector/Property/ReadOnlyPropertyRector/Fixture/skip_entity_mapped_superclass.php.inc @@ -0,0 +1,17 @@ +id = $id; + } +} diff --git a/src/NodeManipulator/PropertyManipulator.php b/src/NodeManipulator/PropertyManipulator.php index c7f898295d5..963fd51666f 100644 --- a/src/NodeManipulator/PropertyManipulator.php +++ b/src/NodeManipulator/PropertyManipulator.php @@ -60,6 +60,7 @@ final class PropertyManipulator private const ALLOWED_NOT_READONLY_ANNOTATION_CLASS_OR_ATTRIBUTES = [ 'Doctrine\ORM\Mapping\Entity', 'Doctrine\ORM\Mapping\Table', + 'Doctrine\ORM\Mapping\MappedSuperclass', ]; /**