Skip to content

Commit 6693a53

Browse files
committed
fix(metadata): deprecate when user decorates in legacy mode
fixes api-platform#5078
1 parent 55c1d11 commit 6693a53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core/Metadata/Property/Factory/CachedPropertyMetadataFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function create(string $resourceClass, string $property, array $options =
4444
$cacheKey = self::CACHE_KEY_PREFIX.md5(serialize([$resourceClass, $property, $options]));
4545

4646
return $this->getCached($cacheKey, function () use ($resourceClass, $property, $options) {
47-
return $this->decorated->create($resourceClass, $property, $options);
47+
return $this->decorated->create($resourceClass, $property, $options + ['deprecate' => false]);
4848
});
4949
}
5050
}

0 commit comments

Comments
 (0)