We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc5d8f4 commit e802b85Copy full SHA for e802b85
src/Type/TypeResult.php
@@ -8,15 +8,21 @@
8
final class TypeResult
9
{
10
11
+ public readonly Type $type;
12
+
13
+ public readonly array $reasons;
14
15
/**
16
* @param T $type
17
* @param list<string> $reasons
18
*/
19
public function __construct(
- public readonly Type $type,
- public readonly array $reasons,
20
+ Type $type,
21
+ array $reasons,
22
)
23
24
+ $this->type = $type;
25
+ $this->reasons = $reasons;
26
}
27
28
0 commit comments