Skip to content

Commit 05cd0d4

Browse files
committed
listener attach type hint fix
1 parent 71b696e commit 05cd0d4

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/Listener/Mvc.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Zend\Console\Console;
88
use Zend\Console\Response as ConsoleResponse;
99
use Zend\EventManager\AbstractListenerAggregate;
10+
use Zend\EventManager\Event;
1011
use Zend\EventManager\EventManagerInterface;
1112
use Zend\Http\PhpEnvironment\Request;
1213
use Zend\Http\PhpEnvironment\Response as HttpResponse;
@@ -84,11 +85,11 @@ public function attach(EventManagerInterface $events, $priority = 1)
8485
}
8586

8687
/**
87-
* @param MvcEvent $e
88+
* @param Event $e
8889
*
8990
* @return void
9091
*/
91-
public function exceptionError(MvcEvent $e)
92+
public function exceptionError(Event $e)
9293
{
9394
$exception = $e->getParam('exception');
9495
if (!$exception) {
@@ -103,11 +104,11 @@ public function exceptionError(MvcEvent $e)
103104
}
104105

105106
/**
106-
* @param MvcEvent $e
107+
* @param Event $e
107108
*
108109
* @return void
109110
*/
110-
public function phpError(MvcEvent $e)
111+
public function phpError(Event $e)
111112
{
112113
register_shutdown_function([$this, 'execOnShutdown']);
113114
set_error_handler([$this, 'phpErrorHandler']);

0 commit comments

Comments
 (0)