Skip to content

Commit 27fcdc6

Browse files
authored
fix(metadata): deprecate when user decorates in legacy mode (api-platform#5091)
fixes api-platform#5078
1 parent 8250d41 commit 27fcdc6

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)