| Conditions | 6 | 
| Paths | 5 | 
| Total Lines | 9 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 19 | public function enterNode(Node $node): void  | 
            ||
| 20 |     { | 
            ||
| 21 |         if ($node instanceof Node\Stmt\Return_ && $node->expr instanceof Array_) { | 
            ||
| 22 |             foreach ($node->expr->items as $item) { | 
            ||
| 23 |                 if ($item->value instanceof New_) { | 
            ||
| 24 | $this->elementTypes[] = $item->value->class->toString();  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 25 |                 } elseif ($item->value instanceof Variable) { | 
            ||
| 26 | // Here you can add logic to infer variable types if necessary  | 
            ||
| 27 | $this->elementTypes[] = 'variable';  | 
            ||
| 28 | }  | 
            ||
| 39 | }  |