Skip to content

Commit c40daf3

Browse files
committed
add readonly to properties
1 parent ee2bde8 commit c40daf3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/HttpException.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ final class HttpException extends \RuntimeException implements HttpExceptionInte
1010
* @param array<string, null|array|bool|float|int|string> $data
1111
*/
1212
public function __construct(
13-
private string $type,
14-
private int $status,
15-
private string $title,
16-
private array $data = [],
13+
private readonly string $type,
14+
private readonly int $status,
15+
private readonly string $title,
16+
private readonly array $data = [],
1717
?\Throwable $previous = null,
1818
) {
1919
parent::__construct($title, $status, $previous);

0 commit comments

Comments
 (0)