| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function createService(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator) |
||
| 19 | { |
||
| 20 | /* @var $serviceLocator \Zend\Mvc\Controller\PluginManager */ |
||
| 21 | $services = $serviceLocator->getServiceLocator(); |
||
| 22 | /* @var $repositories RepositoryService */ |
||
| 23 | $repositories = $services->get('repositories'); |
||
| 24 | /* @var \Auth\AuthenticationService */ |
||
| 25 | $auth = $services->get('AuthenticationService'); |
||
| 26 | /* @var \Acl\Controller\Plugin\Acl */ |
||
| 27 | $acl = $serviceLocator->get('acl'); |
||
| 28 | |||
| 29 | $plugin = new GetOrganizationHandler($repositories, $auth, $acl); |
||
| 30 | return $plugin; |
||
| 31 | } |
||
| 32 | } |
||
| 33 |
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: