1 | <?php |
||
21 | class RouterRequestContextFactory extends AbstractFactory |
||
22 | { |
||
23 | /** |
||
24 | * Create and return the router. |
||
25 | * |
||
26 | * @param ServiceLocatorInterface $serviceLocator |
||
27 | * |
||
28 | * @return \PPI\Framework\Router\RouterListener |
||
29 | */ |
||
30 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
37 | |||
38 | /** |
||
39 | * {@inheritDoc} |
||
40 | */ |
||
41 | public function getConfigurationDefaults() |
||
54 | |||
55 | /** |
||
56 | * {@inheritDoc} |
||
57 | */ |
||
58 | protected function processConfiguration(array $config, ServiceLocatorInterface $serviceLocator = null) |
||
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: