1 | <?php |
||
14 | trait DispatcherAwareTrait |
||
15 | { |
||
16 | /** |
||
17 | * @return mixed |
||
18 | * @throws \Exception |
||
19 | */ |
||
20 | 2 | public function call() |
|
39 | |||
40 | /** |
||
41 | * @param bool $action |
||
42 | * @param bool $controller |
||
43 | * @param bool $module |
||
44 | * @param array $params |
||
45 | * @return mixed |
||
46 | */ |
||
47 | protected function callMCA($action = false, $controller = false, $module = false, $params = []) |
||
55 | |||
56 | /** |
||
57 | * @param bool $action |
||
58 | * @param bool $controller |
||
59 | * @param bool $module |
||
60 | * @param array $params |
||
61 | */ |
||
62 | protected function forward($action = false, $controller = false, $module = false, $params = []) |
||
66 | |||
67 | /** |
||
68 | * @return Dispatcher |
||
69 | */ |
||
70 | protected function getDispatcher() |
||
78 | } |
||
79 |
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: