Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
19 | 5 | public function load(array $configs, ContainerBuilder $container) |
|
20 | { |
||
21 | 5 | $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
22 | 5 | $loader->load('services.xml'); |
|
23 | |||
24 | 5 | $configuration = $this->getConfiguration($configs, $container); |
|
25 | 5 | $config = $this->processConfiguration($configuration, $configs); |
|
|
|||
26 | |||
27 | 5 | $definition = $container->getDefinition('laulamanapps_apple_passbook.build.signer'); |
|
28 | 5 | $definition->setArgument(0, $config['certificate']); |
|
29 | 5 | $definition->setArgument(1, $config['password']); |
|
30 | |||
31 | 5 | $definition = $container->getDefinition('laulamanapps_apple_passbook.build.compiler'); |
|
32 | 5 | $definition->setArgument(3, $config['pass_type_identifier']); |
|
33 | 5 | $definition->setArgument(4, $config['team_identifier']); |
|
34 | 5 | } |
|
35 | } |
||
36 |
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: