We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee2bde8 commit c40daf3Copy full SHA for c40daf3
src/HttpException.php
@@ -10,10 +10,10 @@ final class HttpException extends \RuntimeException implements HttpExceptionInte
10
* @param array<string, null|array|bool|float|int|string> $data
11
*/
12
public function __construct(
13
- private string $type,
14
- private int $status,
15
- private string $title,
16
- private array $data = [],
+ private readonly string $type,
+ private readonly int $status,
+ private readonly string $title,
+ private readonly array $data = [],
17
?\Throwable $previous = null,
18
) {
19
parent::__construct($title, $status, $previous);
0 commit comments