| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 12 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 13 | public function load(array $configs, ContainerBuilder $container) | ||
| 14 |     { | ||
| 15 | $configuration = $this->getConfiguration($configs, $container); | ||
| 16 | $config = $this->processConfiguration($configuration, $configs); | ||
|  | |||
| 17 | |||
| 18 | $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); | ||
| 19 |         $loader->load('services.yaml'); | ||
| 20 | |||
| 21 | $container | ||
| 22 | ->getDefinition(Calendar::class) | ||
| 23 |             ->addMethodCall('setFirstWeekday', [$config['periods']['default_first_weekday']]); | ||
| 24 | } | ||
| 25 | } | ||
| 26 | 
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: