Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
18 | 2 | public function load(array $configs, ContainerBuilder $container) |
|
19 | { |
||
20 | 2 | $configuration = $this->getConfiguration($configs, $container); |
|
21 | 2 | $config = $this->processConfiguration($configuration, $configs); |
|
|
|||
22 | |||
23 | 2 | $container->setParameter('indigo_cookie_consent', $config); |
|
24 | |||
25 | 2 | $loader = new XmlFileLoader( |
|
26 | 2 | $container, |
|
27 | 2 | new FileLocator(__DIR__.'/../Resources/config') |
|
28 | 2 | ); |
|
29 | 2 | $loader->load('services.xml'); |
|
30 | 2 | } |
|
31 | } |
||
32 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: