diff --git a/src/Application/AbstractApplication.php b/src/Application/AbstractApplication.php index d5f55412..2392ab0d 100644 --- a/src/Application/AbstractApplication.php +++ b/src/Application/AbstractApplication.php @@ -71,9 +71,9 @@ public function getEventsManager(): ?ManagerInterface * Gets the module definition registered in the application via module name * * @param string $name * - * @return array|mixed + * @return array|object */ - public function getModule(string $name): array + public function getModule(string $name) { } diff --git a/src/Dispatcher/AbstractDispatcher.php b/src/Dispatcher/AbstractDispatcher.php index ec84205f..b37aaff9 100644 --- a/src/Dispatcher/AbstractDispatcher.php +++ b/src/Dispatcher/AbstractDispatcher.php @@ -171,7 +171,7 @@ public function callActionMethod($handler, string $actionMethod, array $params = * * @throws \Exception if any uncaught or unhandled exception occurs during the dispatcher process. */ - public function dispatch(): bool + public function dispatch() { } diff --git a/src/Dispatcher/DispatcherInterface.php b/src/Dispatcher/DispatcherInterface.php index 2a2b5a83..30a901cf 100644 --- a/src/Dispatcher/DispatcherInterface.php +++ b/src/Dispatcher/DispatcherInterface.php @@ -20,7 +20,7 @@ interface DispatcherInterface * * @return mixed */ - public function dispatch(): bool; + public function dispatch(); /** * Forwards the execution flow to another controller/action diff --git a/src/Helper/Json.php b/src/Helper/Json.php index caab0ece..1ddd0f36 100644 --- a/src/Helper/Json.php +++ b/src/Helper/Json.php @@ -67,7 +67,7 @@ final public static function decode(string $data, bool $associative = false, int * @param int $options Bitmask of JSON decode options. * @param int $depth Recursion depth. * - * @return mixed + * @return string * * @throws \InvalidArgumentException if the JSON cannot be encoded. * @link http://www.php.net/manual/en/function.json-encode.php diff --git a/src/Mvc/Model/Binder.php b/src/Mvc/Model/Binder.php index 2644edc5..e25dd177 100644 --- a/src/Mvc/Model/Binder.php +++ b/src/Mvc/Model/Binder.php @@ -99,7 +99,7 @@ public function bindToHandler($handler, array $params, string $cacheKey, string * @param mixed $paramValue * @param string $className */ - protected function findBoundModel($paramValue, string $className): bool + protected function findBoundModel($paramValue, string $className) { }