Skip to content

Commit 813e779

Browse files
committed
Typehint response
1 parent f53a07c commit 813e779

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Nyholm\Psr7\Stream;
1818
use Tobyz\JsonApiServer\Schema\Field;
1919

20-
function json_api_response(JsonSerializable $document, int $status = 200)
20+
function json_api_response(JsonSerializable $document, int $status = 200): Response
2121
{
2222
return (new Response($status))
2323
->withHeader('content-type', JsonApi::MEDIA_TYPE)

0 commit comments

Comments
 (0)