| Conditions | 4 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 56 | 15 | public function next() |
|
| 57 | { |
||
| 58 | 15 | $this->current = $this->hydrator->hydrateRow(); |
|
| 59 | 15 | if (is_array($this->current) && array_key_exists(0, $this->current) && count($this->current) === 1) { |
|
| 60 | 14 | $this->current = $this->current[0]; |
|
| 61 | } |
||
| 62 | |||
| 63 | 15 | $this->key++; |
|
| 64 | |||
| 65 | 15 | return $this->current; |
|
| 66 | } |
||
| 92 |
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..