| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 17 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 10 | 
| CRAP Score | 2 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 48 | 1 | public function execute(InputInterface $input, OutputInterface $output)  | 
            |
| 49 | 	{ | 
            ||
| 50 | 1 | parent::execute($input, $output);  | 
            |
| 51 | |||
| 52 | // Parse existing CHANGELOG  | 
            ||
| 53 | 1 | $logs = $this->changeLog->parse();  | 
            |
| 54 | |||
| 55 | 1 |         $files = $input->getArgument('files'); | 
            |
| 56 | 1 |         foreach ($files as $f) { | 
            |
| 
                                                                                                    
                        
                         | 
                |||
| 57 | // Merge each file  | 
            ||
| 58 | 1 | $this->changeLog->setInput(new File(['file' => $f]));  | 
            |
| 59 | 1 | $logs->mergeLog($this->changeLog->parse());  | 
            |
| 60 | 1 | }  | 
            |
| 61 | |||
| 62 | // Write updated CHANGELOG  | 
            ||
| 63 | 1 | $this->changeLog->write($logs);  | 
            |
| 64 | 1 | }  | 
            |
| 65 | |||
| 67 | 
There are different options of fixing this problem.
If you want to be on the safe side, you can add an additional type-check:
If you are sure that the expression is traversable, you might want to add a doc comment cast to improve IDE auto-completion and static analysis:
Mark the issue as a false-positive: Just hover the remove button, in the top-right corner of this issue for more options.