Skip to content

Commit e054f96

Browse files
committed
Metadata: Attributes default value should be null not an empty array
1 parent 42e0bdc commit e054f96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Metadata/Resource/Factory/AnnotationResourceMetadataFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ private function createMetadata(ApiResource $annotation, ResourceMetadata $paren
8585
$annotation->iri,
8686
$annotation->itemOperations,
8787
$annotation->collectionOperations,
88-
$annotation->attributes,
88+
$annotation->attributes ?: null,
8989
$annotation->subresourceOperations,
9090
$annotation->graphql
9191
);

0 commit comments

Comments
 (0)