| Conditions | 3 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 41 | public function indexAction() |
||
| 42 | { |
||
| 43 | $user = $this->serviceLocator->get('AuthenticationService')->getUser(); |
||
| 44 | |||
| 45 | if ($this->params()->fromPost('confirm')) |
||
| 46 | { |
||
| 47 | foreach ($this->dependencies as $dependency) /* @var $dependency \Auth\Dependency\ModuleInterface */ |
||
| 48 | { |
||
| 49 | $dependency->removeItems($user); |
||
| 50 | } |
||
| 51 | } |
||
| 52 | |||
| 53 | return [ |
||
| 54 | 'dependencies' => $this->dependencies, |
||
| 55 | 'user' => $user, |
||
| 56 | 'router' => $this->getEvent()->getRouter() |
||
| 57 | ]; |
||
| 58 | } |
||
| 59 | } |
||
| 60 |
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: