Total Complexity | 7 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class Points implements PointsInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var ScoreInterface |
||
14 | */ |
||
15 | private $collections; |
||
16 | |||
17 | /** |
||
18 | * @param ScoreInterface[] $collections |
||
19 | */ |
||
20 | public function __construct(...$collections) |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @param ExtraResult $extraResult |
||
27 | * @return int |
||
28 | */ |
||
29 | public function get(ExtraResult $extraResult): int |
||
48 | } |
||
49 | |||
50 | |||
51 | private function checkCollection() |
||
61 | } |
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..