Skip to content

Commit 5e8d6b5

Browse files
committed
add readonly to properties
1 parent 0cd52fd commit 5e8d6b5

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/Factory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ final class Factory
1111
/**
1212
* @var callable
1313
*/
14-
private $previousFactory;
14+
private readonly mixed $previousFactory;
1515

1616
/**
1717
* @var callable
1818
*/
19-
private $factory;
19+
private readonly mixed $factory;
2020

2121
public function __construct(callable $previousFactory, callable $factory)
2222
{

src/Parameter.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66

77
final class Parameter
88
{
9-
/**
10-
* @param mixed $parameter
11-
*/
12-
public function __construct(private $parameter) {}
9+
public function __construct(private readonly mixed $parameter) {}
1310

1411
public function __invoke(): mixed
1512
{

0 commit comments

Comments
 (0)