| Conditions | 5 | 
| Paths | 3 | 
| Total Lines | 23 | 
| Code Lines | 13 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 3 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 19 | protected function _parse(&$variable)  | 
            ||
| 20 |   { | 
            ||
| 21 | if (  | 
            ||
| 22 | !is_object($variable)  | 
            ||
| 23 | || !$variable instanceof \Traversable  | 
            ||
| 24 | || stripos(get_class($variable), 'zend') !== false // zf2 PDO wrapper does not play nice  | 
            ||
| 25 |     ) { | 
            ||
| 26 | return false;  | 
            ||
| 27 | }  | 
            ||
| 28 | |||
| 29 | |||
| 30 | $arrayCopy = iterator_to_array($variable, true);  | 
            ||
| 31 | |||
| 32 |     if ($arrayCopy === false) { | 
            ||
| 33 | return false;  | 
            ||
| 34 | }  | 
            ||
| 35 | |||
| 36 | $this->value = KintParser::factory($arrayCopy)->extendedValue;  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 37 | $this->type = 'Iterator contents';  | 
            ||
| 38 | $this->size = count($arrayCopy);  | 
            ||
| 39 | |||
| 40 | return true;  | 
            ||
| 41 | }  | 
            ||
| 42 | }  | 
            ||
| 43 | 
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..