Skip to content

Commit 5390916

Browse files
committed
break if depth >= maxDepth
1 parent 21229f8 commit 5390916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Operation/Factory/SubresourceOperationFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ private function computeSubresourceOperations(string $resourceClass, array &$tre
8888
}
8989

9090
if (null !== $maxDepth && $depth >= $maxDepth) {
91-
continue;
91+
break;
9292
}
9393
if (isset($visited[$visiting])) {
9494
continue;

0 commit comments

Comments
 (0)