| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 19 | 
| Code Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 29 | public function get(ExtraResult $extraResult): int | ||
| 30 |     { | ||
| 31 | $this->checkCollection(); | ||
| 32 | |||
| 33 |         usort($this->collections, function ($a, $b) { | ||
| 34 | return $a->getScore() <=> $b->getScore(); | ||
| 35 | }); | ||
| 36 | $this->collections = array_reverse($this->collections); | ||
| 37 | |||
| 38 | $score = 0; | ||
| 39 | |||
| 40 |         foreach ($this->collections as $collection) { | ||
| 41 |             if ($collection->check($extraResult) === true) { | ||
| 42 | $score = $collection->getScore(); | ||
| 43 | break; | ||
| 44 | } | ||
| 45 | } | ||
| 46 | |||
| 47 | return $score; | ||
| 48 | } | ||
| 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..