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_toolkit'; |
||
37 | |||
38 | /** |
||
39 | * @return array |
||
40 | */ |
||
41 | public function getModuleDependencies() |
||
50 | |||
51 | /** |
||
52 | * @param EventInterface $e |
||
53 | * |
||
54 | * @return array|void |
||
55 | * |
||
56 | * @throws \Zend\ServiceManager\Exception\ServiceNotFoundException |
||
57 | */ |
||
58 | public function onBootstrap(EventInterface $e) |
||
71 | |||
72 | |||
73 | /** |
||
74 | * @return mixed |
||
75 | */ |
||
76 | public function getConfig() |
||
80 | |||
81 | /** |
||
82 | * @return array |
||
83 | */ |
||
84 | public function getAutoloaderConfig() |
||
94 | |||
95 | } |
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: