Skip to content

Commit a42b53a

Browse files
committed
marked readonly properties
1 parent 8f7f5fe commit a42b53a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Utils/FileInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
*/
2020
final class FileInfo extends \SplFileInfo
2121
{
22-
private string $relativePath;
22+
private readonly string $relativePath;
2323

2424

2525
public function __construct(string $file, string $relativePath = '')

src/Utils/Type.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/**
1717
* PHP type reflection.
1818
*/
19-
final class Type
19+
final readonly class Type
2020
{
2121
/** @var array<int, string|self> */
2222
private array $types;

0 commit comments

Comments
 (0)