1 | <?php |
||
13 | class CappedCreditRepositoryFactory implements FactoryInterface |
||
14 | { |
||
15 | /** |
||
16 | * @param \Zend\ServiceManager\ServiceLocatorInterface $serviceLocator |
||
17 | * @return \JhFlexiTime\Repository\CappedCreditRepository |
||
18 | */ |
||
19 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
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: