From ead5e52b9d5abfa6f5cca693eecbe8e5392c3897 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Thu, 6 Feb 2025 16:14:41 +0000 Subject: [PATCH] Updated Rector to commit ecd8b37aa8ad07d8618606124699175572de63f4 https://github.com/rectorphp/rector-src/commit/ecd8b37aa8ad07d8618606124699175572de63f4 [Php81] Exclude Doctrine ODM MongoDB Document and EmbeddedDocument from ReadOnlyPropertyRector (#6721) --- src/Application/VersionResolver.php | 4 ++-- src/NodeManipulator/PropertyManipulator.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index 380516bcc96..b27f3f23c66 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = '2.0.8'; + public const PACKAGE_VERSION = 'ecd8b37aa8ad07d8618606124699175572de63f4'; /** * @api * @var string */ - public const RELEASE_DATE = '2025-02-06 00:19:57'; + public const RELEASE_DATE = '2025-02-06 23:12:05'; /** * @var int */ diff --git a/src/NodeManipulator/PropertyManipulator.php b/src/NodeManipulator/PropertyManipulator.php index d88d1e76b5a..968c16fe073 100644 --- a/src/NodeManipulator/PropertyManipulator.php +++ b/src/NodeManipulator/PropertyManipulator.php @@ -82,7 +82,7 @@ final class PropertyManipulator /** * @var string[]|class-string[] */ - private const ALLOWED_NOT_READONLY_CLASS_ANNOTATIONS = ['ApiPlatform\\Core\\Annotation\\ApiResource', 'ApiPlatform\\Metadata\\ApiResource', 'Doctrine\\ORM\\Mapping\\Entity', 'Doctrine\\ORM\\Mapping\\Table', 'Doctrine\\ORM\\Mapping\\MappedSuperclass', 'Doctrine\\ORM\\Mapping\\Embeddable']; + private const ALLOWED_NOT_READONLY_CLASS_ANNOTATIONS = ['ApiPlatform\\Core\\Annotation\\ApiResource', 'ApiPlatform\\Metadata\\ApiResource', 'Doctrine\\ORM\\Mapping\\Entity', '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(BetterNodeFinder $betterNodeFinder, PhpDocInfoFactory $phpDocInfoFactory, PropertyFetchFinder $propertyFetchFinder, NodeNameResolver $nodeNameResolver, PhpAttributeAnalyzer $phpAttributeAnalyzer, NodeTypeResolver $nodeTypeResolver, PromotedPropertyResolver $promotedPropertyResolver, ConstructorAssignDetector $constructorAssignDetector, AstResolver $astResolver, PropertyFetchAnalyzer $propertyFetchAnalyzer, ContextAnalyzer $contextAnalyzer) { $this->betterNodeFinder = $betterNodeFinder;