Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
58 | protected function processConfiguration(array $config, ServiceLocatorInterface $serviceLocator = null) |
||
59 | { |
||
60 | $defaults = $this->getConfigurationDefaults(); |
||
61 | $defaults = $defaults['framework']['router']; |
||
62 | |||
63 | return isset($config['framework']['router']) ? |
||
64 | $this->mergeConfiguration($defaults, $config['framework']['router']) : |
||
65 | $defaults; |
||
66 | } |
||
67 | } |
||
68 |
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: