| Conditions | 3 |
| Paths | 4 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | function fetchRow() { |
||
| 21 | if ( $this->pos < count( $this->result ) ) { |
||
| 22 | $this->currentRow = $this->result[$this->pos]; |
||
| 23 | } else { |
||
| 24 | $this->currentRow = false; |
||
|
|
|||
| 25 | } |
||
| 26 | $this->pos++; |
||
| 27 | if ( is_object( $this->currentRow ) ) { |
||
| 28 | return get_object_vars( $this->currentRow ); |
||
| 29 | } else { |
||
| 30 | return $this->currentRow; |
||
| 31 | } |
||
| 32 | } |
||
| 33 | |||
| 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..