Skip to content

Commit 5645a85

Browse files
committed
Return the result of the handler else return 204
1 parent 5b215f0 commit 5645a85

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Endpoint/CollectionAction.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ public function handle(Context $context): ?ResponseInterface
5656
throw new ForbiddenException();
5757
}
5858

59-
($this->handler)($context);
60-
61-
return new Response(204);
59+
return ($this->handler)($context) ?? new Response(204);
6260
}
6361

6462
public function getOpenApiPaths(Collection $collection): array

0 commit comments

Comments
 (0)