| @@ -17,7 +17,7 @@ | ||
| 17 | 17 | public static function getSubscribedEvents(): array | 
| 18 | 18 |      { | 
| 19 | 19 | return [ | 
| 20 | - KernelEvents::VIEW => ['handleLazyResponse'], | |
| 20 | + KernelEvents::VIEW => [ 'handleLazyResponse' ], | |
| 21 | 21 | ]; | 
| 22 | 22 | } | 
| 23 | 23 | |
| @@ -13,7 +13,7 @@ | ||
| 13 | 13 | /** | 
| 14 | 14 | * AbstractLazyHttpResponse constructor. | 
| 15 | 15 | */ | 
| 16 | - public function __construct(protected int $status = Response::HTTP_OK, protected array $headers = []) | |
| 16 | + public function __construct(protected int $status = Response::HTTP_OK, protected array $headers = [ ]) | |
| 17 | 17 |      { | 
| 18 | 18 | } | 
| 19 | 19 | |
| @@ -10,7 +10,7 @@ | ||
| 10 | 10 | */ | 
| 11 | 11 | final class TemplateResponse extends AbstractLazyHttpResponse | 
| 12 | 12 |  { | 
| 13 | - public function __construct(private string $template, private array $data = [], int $status = Response::HTTP_OK, array $headers = []) | |
| 13 | + public function __construct(private string $template, private array $data = [ ], int $status = Response::HTTP_OK, array $headers = [ ]) | |
| 14 | 14 |      { | 
| 15 | 15 | parent::__construct($status, $headers); | 
| 16 | 16 | } | 
| @@ -8,7 +8,7 @@ | ||
| 8 | 8 | */ | 
| 9 | 9 | final class RedirectResponse implements LazyResponseInterface | 
| 10 | 10 |  { | 
| 11 | - public function __construct(private string $routeName, private array $routeParams = [], private bool $isPermanent = false, private array $headers = []) | |
| 11 | + public function __construct(private string $routeName, private array $routeParams = [ ], private bool $isPermanent = false, private array $headers = [ ]) | |
| 12 | 12 |      { | 
| 13 | 13 | } | 
| 14 | 14 | |
| @@ -13,7 +13,7 @@ | ||
| 13 | 13 | /** | 
| 14 | 14 | * JsonSerializeResponse constructor. | 
| 15 | 15 | */ | 
| 16 | - public function __construct(private mixed $data, int $status = Response::HTTP_OK, array $headers = []) | |
| 16 | + public function __construct(private mixed $data, int $status = Response::HTTP_OK, array $headers = [ ]) | |
| 17 | 17 |      { | 
| 18 | 18 | parent::__construct($status, $headers); | 
| 19 | 19 | } |