From 35ce2562c7d41a23fdc8b7af9d05f60206a303fa Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 3 Jun 2018 10:34:35 +0200 Subject: [PATCH] add type hint --- Dispatcher/Dispatcher.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dispatcher/Dispatcher.php b/Dispatcher/Dispatcher.php index 3db81f3ad..b8ffed67c 100644 --- a/Dispatcher/Dispatcher.php +++ b/Dispatcher/Dispatcher.php @@ -163,13 +163,13 @@ final class Dispatcher * * @param string $controller Controller * - * @return mixed + * @return object * * @throws PathException This exception is thrown in case the controller couldn't be found. * * @since 1.0.0 */ - private function getController(string $controller) /* : object */ + private function getController(string $controller) : object { if (!isset($this->controllers[$controller])) { // If module controller use module manager for initialization