Skip to content

Commit 719fef8

Browse files
committed
not transform 0 into null when retrieving maxDepth
1 parent 5390916 commit 719fef8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Metadata/Property/Factory/AnnotationSubresourceMetadataFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ private function updateMetadata(ApiSubresource $annotation, PropertyMetadata $pr
8282
$type = $propertyMetadata->getType();
8383
$isCollection = $type->isCollection();
8484
$resourceClass = $isCollection ? $type->getCollectionValueType()->getClassName() : $type->getClassName();
85-
$maxDepth = $annotation->maxDepth ? $annotation->maxDepth : null;
85+
$maxDepth = $annotation->maxDepth;
8686

8787
return $propertyMetadata->withSubresource(new SubresourceMetadata($resourceClass, $isCollection, $maxDepth));
8888
}

0 commit comments

Comments
 (0)