Conditions | 3 |
Paths | 4 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function load(array $configs, ContainerBuilder $container) |
||
23 | { |
||
24 | $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
||
25 | $loader->load('services.xml'); |
||
26 | |||
27 | $config = $this->processConfiguration($this->getConfiguration($configs, $container), $configs); |
||
|
|||
28 | |||
29 | if (!$this->isConfigEnabled($container, $config['argument_value_resolver'])) { |
||
30 | $container->removeDefinition(EnumValueResolver::class); |
||
31 | } |
||
32 | |||
33 | if (!$this->isConfigEnabled($container, $config['serializer'])) { |
||
34 | $container->removeDefinition(EnumNormalizer::class); |
||
35 | } |
||
36 | } |
||
37 | |||
48 |
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: