1 | <?php |
||
23 | class Module implements |
||
24 | AutoloaderProviderInterface, |
||
25 | ConfigProviderInterface, |
||
26 | BootstrapListenerInterface |
||
27 | { |
||
28 | /** |
||
29 | * {@inheritDoc} |
||
30 | */ |
||
31 | 2 | public function getAutoloaderConfig() |
|
32 | { |
||
33 | return array( |
||
34 | 2 | AutoloaderFactory::STANDARD_AUTOLOADER => array( |
|
35 | 1 | StandardAutoloader::LOAD_NS => array( |
|
36 | 1 | __NAMESPACE__ => __DIR__, |
|
37 | 1 | ), |
|
38 | 1 | ), |
|
39 | 1 | ); |
|
40 | } |
||
41 | |||
42 | /** |
||
43 | * {@inheritDoc} |
||
44 | */ |
||
45 | 1 | public function getConfig() |
|
46 | 1 | { |
|
47 | 1 | return include __DIR__ . '/../config/module.config.php'; |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * Callback method for dispatch and dispatch.error events. |
||
52 | * |
||
53 | * @param MvcEvent $event |
||
54 | * @return \Zend\Http\Response|null |
||
55 | */ |
||
56 | 4 | public function onDispatch(MvcEvent $event) |
|
80 | |||
81 | /** |
||
82 | * {@inheritDoc} |
||
83 | */ |
||
84 | 1 | public function onBootstrap(EventInterface $event) |
|
94 | |||
95 | /** |
||
96 | * @param \Zend\Console\Adapter\AdapterInterface $console |
||
97 | * @return array |
||
98 | * |
||
99 | * @SuppressWarnings(PHPMD.UnusedFormalParameter) |
||
100 | */ |
||
101 | public function getConsoleUsage(AdapterInterface $console) |
||
110 | } |
||
111 |
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass.
Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.