| 1 | <?php |
||
| 22 | class AllDbsCommand extends AbstractCommand { |
||
| 23 | |||
| 24 | |||
| 25 | /** |
||
| 26 | * @brief Configures the command. |
||
| 27 | */ |
||
| 28 | protected function configure() { |
||
| 32 | |||
| 33 | |||
| 34 | /** |
||
| 35 | * @brief Executes the command. |
||
| 36 | * @param[in] InputInterface $input The input interface |
||
| 37 | * @param[in] OutputInterface $output The output interface |
||
| 38 | * @retval string Information about current database. |
||
| 39 | */ |
||
| 40 | protected function execute(InputInterface $input, OutputInterface $output) { |
||
| 47 | |||
| 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.