diff --git a/upload/system/engine/loader.php b/upload/system/engine/loader.php index 90932f72f..4f91f4e06 100644 --- a/upload/system/engine/loader.php +++ b/upload/system/engine/loader.php @@ -41,6 +41,8 @@ public function __construct($registry) { * * Removing the mixed output as a temporary workaround since admin extension * installers don't seem to like that really much + * + * @return mixed */ public function controller(string $route, array $data = []) { // Sanitize the call @@ -201,6 +203,8 @@ public function helper(string $route): void { * Config * * @param string $route + * + * @return void */ public function config(string $route): void { $this->registry->get('event')->trigger('config/' . $route . '/before', [&$route]); @@ -216,7 +220,7 @@ public function config(string $route): void { * @param string $route * @param string $key * - * @return array + * @return array */ public function language(string $route, string $key = ''): array { // Sanitize the call @@ -250,7 +254,7 @@ public function language(string $route, string $key = ''): array { * * @return mixed */ - protected function callback($registry, $route): mixed { + protected function callback($registry, $route) { return function($args) use ($registry, $route) { static $model; diff --git a/upload/system/engine/proxy.php b/upload/system/engine/proxy.php index f71d5455f..7c81f8727 100644 --- a/upload/system/engine/proxy.php +++ b/upload/system/engine/proxy.php @@ -48,12 +48,12 @@ public function __set(string $key, object $value): void { /** * __call * - * @param string $key - * @param array $args + * @param string $key + * @param array $args * * @return mixed */ - public function __call(string $key, $args) { + public function __call(string $key, array $args) { $arg_data = []; $args = func_get_args();