| 1 | <?php |
||
| 20 | class Module |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Sets up services on the bootstrap event. |
||
| 24 | * |
||
| 25 | * @internal |
||
| 26 | * Creates the translation service and a ModuleRouteListener |
||
| 27 | * |
||
| 28 | * @param MvcEvent $e |
||
| 29 | */ |
||
| 30 | public function onBootstrap(MvcEvent $e) |
||
| 31 | { |
||
| 32 | $events = $e->getApplication()->getEventManager(); |
||
| 33 | $events->attach( |
||
| 34 | array(MvcEvent::EVENT_RENDER, MvcEvent::EVENT_RENDER_ERROR), |
||
|
|
|||
| 35 | new InjectSubNavigationListener(), |
||
| 36 | 10 |
||
| 37 | ); |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Loads module specific configuration. |
||
| 42 | * |
||
| 43 | * @return array |
||
| 44 | */ |
||
| 45 | public function getConfig() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Loads module specific autoloader configuration. |
||
| 52 | * |
||
| 53 | * @return array |
||
| 54 | */ |
||
| 55 | public function getAutoloaderConfig() |
||
| 65 | } |
||
| 66 |
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: