1 | <?php |
||
19 | class XmlDoctrineObjectConstructorSubscriberFactory implements FactoryInterface |
||
20 | { |
||
21 | /** |
||
22 | * @param ServiceLocatorInterface $serviceLocator |
||
23 | * |
||
24 | * @return XmlDoctrineObjectConstructorSubscriber |
||
25 | * @throws \Interop\Container\Exception\NotFoundException |
||
26 | * @throws \Interop\Container\Exception\ContainerException |
||
27 | * @throws \Zend\ServiceManager\Exception\ServiceNotFoundException |
||
28 | */ |
||
29 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
40 | } |
||
41 |
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: