Skip to content

Commit c9077e8

Browse files
authored
Fixes undefined property error in CollectionNormalizer.php, line 46 (#5776)
1 parent 0b51d28 commit c9077e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Hydra/Serializer/CollectionNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct(private readonly ContextBuilderInterface $contextBui
4343
{
4444
$this->defaultContext = array_merge($this->defaultContext, $defaultContext);
4545

46-
if ($this->resourceMetadataCollectionFactory) {
46+
if ($resourceMetadataCollectionFactory) {
4747
trigger_deprecation('api-platform/core', '3.0', sprintf('Injecting "%s" within "%s" is not needed anymore and this dependency will be removed in 4.0.', ResourceMetadataCollectionFactoryInterface::class, self::class));
4848
}
4949

0 commit comments

Comments
 (0)