We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cd52fd commit 5e8d6b5Copy full SHA for 5e8d6b5
src/Factory.php
@@ -11,12 +11,12 @@ final class Factory
11
/**
12
* @var callable
13
*/
14
- private $previousFactory;
+ private readonly mixed $previousFactory;
15
16
17
18
19
- private $factory;
+ private readonly mixed $factory;
20
21
public function __construct(callable $previousFactory, callable $factory)
22
{
src/Parameter.php
@@ -6,10 +6,7 @@
6
7
final class Parameter
8
9
- /**
10
- * @param mixed $parameter
- */
- public function __construct(private $parameter) {}
+ public function __construct(private readonly mixed $parameter) {}
public function __invoke(): mixed
0 commit comments