Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 42.86% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | final class ClassNameNotFound implements GacelaEventInterface |
||
11 | { |
||
12 | private ClassInfo $classInfo; |
||
13 | |||
14 | /** @var list<string> */ |
||
15 | private array $resolvableTypes; |
||
16 | |||
17 | /** |
||
18 | * @param list<string> $resolvableTypes |
||
19 | */ |
||
20 | 10 | public function __construct(ClassInfo $classInfo, array $resolvableTypes) |
|
21 | { |
||
22 | 10 | $this->classInfo = $classInfo; |
|
23 | 10 | $this->resolvableTypes = $resolvableTypes; |
|
|
|||
24 | } |
||
25 | |||
26 | public function toString(): string |
||
33 | ); |
||
34 | } |
||
36 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..