1 | <?php |
||
13 | class UpdateDealerTables extends ContainerAwareCommand |
||
14 | { |
||
15 | /** |
||
16 | * Sets the command name and description |
||
17 | */ |
||
18 | protected function configure() |
||
25 | |||
26 | /** |
||
27 | * @param InputInterface $input |
||
28 | * @param OutputInterface $output |
||
29 | */ |
||
30 | protected function execute(InputInterface $input, OutputInterface $output) |
||
48 | } |
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.