| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function load(array $configs, ContainerBuilder $container) |
||
| 23 | { |
||
| 24 | $configuration = new Configuration(); |
||
| 25 | $config = $this->processConfiguration($configuration, $configs); |
||
| 26 | |||
| 27 | $container->setParameter('alpixel_media.upload_folder', $config['upload_folder']); |
||
| 28 | $container->setParameter('alpixel_media.upload_configurations', $config['upload_configurations']); |
||
| 29 | |||
| 30 | $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
||
| 31 | $loader->load('services.yml'); |
||
| 32 | } |
||
| 33 | |||
| 44 |
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.