1 | <?php |
||
24 | class Module implements |
||
25 | BootstrapListenerInterface, |
||
26 | ConfigProviderInterface, |
||
27 | AutoloaderProviderInterface, |
||
28 | DependencyIndicatorInterface |
||
29 | { |
||
30 | |||
31 | /** |
||
32 | * Имя секции в конфиги приложения |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | const CONFIG_KEY = 'workflow_zf2_dispatch'; |
||
37 | |||
38 | /** |
||
39 | * @return array |
||
40 | */ |
||
41 | public function getModuleDependencies() |
||
47 | |||
48 | /** |
||
49 | * @param EventInterface $e |
||
50 | * |
||
51 | * @return array|void |
||
52 | * |
||
53 | * @throws \Zend\ServiceManager\Exception\ServiceNotFoundException |
||
54 | */ |
||
55 | public function onBootstrap(EventInterface $e) |
||
66 | |||
67 | |||
68 | /** |
||
69 | * @return mixed |
||
70 | */ |
||
71 | public function getConfig() |
||
75 | |||
76 | /** |
||
77 | * @return array |
||
78 | */ |
||
79 | public function getAutoloaderConfig() |
||
89 | |||
90 | } |
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: