add type hint

This commit is contained in:
Dennis Eichhorn 2018-06-03 10:34:35 +02:00
parent 55013d86cd
commit 35ce2562c7

View File

@ -163,13 +163,13 @@ final class Dispatcher
* *
* @param string $controller Controller * @param string $controller Controller
* *
* @return mixed * @return object
* *
* @throws PathException This exception is thrown in case the controller couldn't be found. * @throws PathException This exception is thrown in case the controller couldn't be found.
* *
* @since 1.0.0 * @since 1.0.0
*/ */
private function getController(string $controller) /* : object */ private function getController(string $controller) : object
{ {
if (!isset($this->controllers[$controller])) { if (!isset($this->controllers[$controller])) {
// If module controller use module manager for initialization // If module controller use module manager for initialization