| 1 | <?php |
||
| 14 | class BootstrapGroup extends base\BaseObject implements base\BootstrapInterface |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * All of this bootstraps will be used. |
||
| 18 | * @var array|string|base\BootstrapInterface references |
||
| 19 | */ |
||
| 20 | public $items = []; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param base\Application $app |
||
| 24 | * @throws base\InvalidConfigException |
||
| 25 | */ |
||
| 26 | 2 | public function bootstrap($app): void |
|
| 34 | } |
||
| 35 |
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.