1 | <?php |
||
13 | class Module implements ConfigProviderInterface, DependencyIndicatorInterface, InitProviderInterface |
||
14 | { |
||
15 | /** |
||
16 | * Returns configuration to merge with application configuration |
||
17 | * |
||
18 | * @return array|\Traversable |
||
19 | */ |
||
20 | 3 | public function getConfig() |
|
24 | |||
25 | /** |
||
26 | * Expected to return an array of modules on which the current one depends on |
||
27 | * |
||
28 | * @return array |
||
29 | */ |
||
30 | 3 | public function getModuleDependencies() |
|
38 | |||
39 | /** |
||
40 | * @param ModuleManagerInterface $manager |
||
41 | */ |
||
42 | 2 | public function init(ModuleManagerInterface $manager) |
|
48 | |||
49 | /** |
||
50 | * Initialize the console with additional commands from (optionally) doctrine\migrations |
||
51 | * @param EventInterface $event |
||
52 | * @return bool |
||
53 | * @throws \Zend\ServiceManager\Exception\ServiceNotFoundException |
||
54 | */ |
||
55 | 5 | public function initializeConsole(EventInterface $event) |
|
77 | } |
||
78 |
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: