From b0f075969e81ba5d080bddba98eecd7db0138d75 Mon Sep 17 00:00:00 2001 From: soyuka Date: Tue, 25 Oct 2022 10:11:39 +0200 Subject: [PATCH] fix(metadata): deprecate when user decorates in legacy mode fixes #5078 --- .../Metadata/Property/Factory/CachedPropertyMetadataFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Metadata/Property/Factory/CachedPropertyMetadataFactory.php b/src/Core/Metadata/Property/Factory/CachedPropertyMetadataFactory.php index ae3ff9c4f77..452ce9cbcb2 100644 --- a/src/Core/Metadata/Property/Factory/CachedPropertyMetadataFactory.php +++ b/src/Core/Metadata/Property/Factory/CachedPropertyMetadataFactory.php @@ -44,7 +44,7 @@ public function create(string $resourceClass, string $property, array $options = $cacheKey = self::CACHE_KEY_PREFIX.md5(serialize([$resourceClass, $property, $options])); return $this->getCached($cacheKey, function () use ($resourceClass, $property, $options) { - return $this->decorated->create($resourceClass, $property, $options); + return $this->decorated->create($resourceClass, $property, $options + ['deprecate' => false]); }); } }