Skip to content

Commit 73e09a9

Browse files
committed
- makes the class injectable by DI container
1 parent 2c59bcf commit 73e09a9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

JsonResponse.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,14 @@
2121
class JsonResponse extends ServerResponse
2222
{
2323
public function __construct(
24-
mixed $content,
24+
mixed $content = null,
2525
int $statusCode = HttpStatus::OK,
2626
array $headers = [])
2727
{
28-
parent::__construct($this->process($content), $statusCode, $headers);
28+
parent::__construct(
29+
$this->process($content),
30+
$statusCode,
31+
$headers);
2932
}
3033

3134
/**

0 commit comments

Comments
 (0)