From bb1b2b4aa88ff04740c19e5d2e884b25b447feb2 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sat, 25 Feb 2017 06:06:02 +0700 Subject: [PATCH] Event type hint fix in on listener attach --- src/Listener/ForceHttps.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Listener/ForceHttps.php b/src/Listener/ForceHttps.php index 7cf55e4..2180dd6 100644 --- a/src/Listener/ForceHttps.php +++ b/src/Listener/ForceHttps.php @@ -5,6 +5,7 @@ use ForceHttpsModule\HttpsTrait; use Zend\Console\Console; use Zend\EventManager\AbstractListenerAggregate; +use Zend\EventManager\Event; use Zend\EventManager\EventManagerInterface; use Zend\Http\PhpEnvironment\Response; use Zend\Mvc\MvcEvent; @@ -73,9 +74,9 @@ private function setHttpStrictTransportSecurity($uriScheme, $match, Response $re /** * Force Https Scheme handle. * - * @param MvcEvent $e + * @param Event $e */ - public function forceHttpsScheme(MvcEvent $e) + public function forceHttpsScheme(Event $e) { if (! $this->config['enable']) { return;