| Total Complexity | 7 |
| Total Lines | 44 |
| 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 Result $result |
||
| 27 | * @return int |
||
| 28 | */ |
||
| 29 | public function get(Result $result): int |
||
| 46 | } |
||
| 47 | |||
| 48 | |||
| 49 | private function checkCollection() |
||
| 59 | } |
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..