1 | <?php |
||
12 | class ShowProjectsCommand extends Command |
||
13 | { |
||
14 | const COMMAND_NAME = 'show-projects'; |
||
15 | const COMMAND_DESC = 'List Deploy Projects.'; |
||
16 | |||
17 | private $databaseService; |
||
18 | |||
19 | public function __construct(DatabaseService $databaseService) |
||
25 | |||
26 | protected function configure() |
||
32 | |||
33 | protected function execute(InputInterface $input, OutputInterface $output) |
||
53 | } |
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.