| 1 | <?php |
||
| 22 | class ControllerNameParserFactory implements FactoryInterface |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * Create and return a ControllerNameParser instance. |
||
| 26 | * |
||
| 27 | * @param ServiceLocatorInterface $serviceLocator |
||
| 28 | * |
||
| 29 | * @return \PPI\Framework\Module\Controller\ControllerNameParser |
||
| 30 | */ |
||
| 31 | public function createService(ServiceLocatorInterface $serviceLocator) |
||
| 37 | } |
||
| 38 |
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: