Skip to content

Commit

Permalink
Return empty array
Browse files Browse the repository at this point in the history
  • Loading branch information
joanhey committed Feb 25, 2024
1 parent ed056ac commit 822cede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Servers/Workerman.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
function cookies(Request $request): string
{
if ($request->get() === []) {
return encode($request->cookie());
return encode($request->cookie() ?? []);
}

$response = new Response(headers: ['Content-Type' => 'application/json']);
Expand Down

0 comments on commit 822cede

Please sign in to comment.