From 3ba53c43cfe1a7c625e97ed0ab0deb1eb89c1475 Mon Sep 17 00:00:00 2001 From: ping-yee <611077101@mail.nknu.edu.tw> Date: Thu, 13 Apr 2023 23:57:15 +0800 Subject: [PATCH] docs: replace type `mixed` at Config class. --- system/Config/BaseService.php | 10 +++++----- system/Config/Config.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/system/Config/BaseService.php b/system/Config/BaseService.php index 98cb19fde9e7..8c877fa014a1 100644 --- a/system/Config/BaseService.php +++ b/system/Config/BaseService.php @@ -173,9 +173,9 @@ class BaseService * * $key must be a name matching a service. * - * @param mixed ...$params + * @param array|object|string|null ...$params * - * @return mixed + * @return object */ protected static function getSharedInstance(string $key, ...$params) { @@ -239,7 +239,7 @@ public static function locator(bool $getShared = true) * Provides the ability to perform case-insensitive calling of service * names. * - * @return mixed + * @return object|null */ public static function __callStatic(string $name, array $arguments) { @@ -296,7 +296,7 @@ public static function resetSingle(string $name) /** * Inject mock object for testing. * - * @param mixed $mock + * @param object $mock */ public static function injectMock(string $name, $mock) { @@ -309,7 +309,7 @@ public static function injectMock(string $name, $mock) * looks for the service method in each, returning an instance of * the service, if available. * - * @return mixed + * @return object|null * * @deprecated * diff --git a/system/Config/Config.php b/system/Config/Config.php index 307f7ad82288..d261fa4d9ae4 100644 --- a/system/Config/Config.php +++ b/system/Config/Config.php @@ -23,7 +23,7 @@ class Config * @param string $name Configuration name * @param bool $getShared Use shared instance * - * @return mixed|null + * @return object|null */ public static function get(string $name, bool $getShared = true) {