We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c59bcf commit 73e09a9Copy full SHA for 73e09a9
1 file changed
JsonResponse.php
@@ -21,11 +21,14 @@
21
class JsonResponse extends ServerResponse
22
{
23
public function __construct(
24
- mixed $content,
+ mixed $content = null,
25
int $statusCode = HttpStatus::OK,
26
array $headers = [])
27
28
- parent::__construct($this->process($content), $statusCode, $headers);
+ parent::__construct(
29
+ $this->process($content),
30
+ $statusCode,
31
+ $headers);
32
}
33
34
/**
0 commit comments