Skip to content

Commit 7811d2a

Browse files
authored
Merge pull request #7432 from ping-yee/replace-mixed-config
docs: replace type `mixed` at Config class.
2 parents b38a949 + 939debe commit 7811d2a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

system/Config/BaseService.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ class BaseService
173173
*
174174
* $key must be a name matching a service.
175175
*
176-
* @param mixed ...$params
176+
* @param array|bool|float|int|object|string|null ...$params
177177
*
178-
* @return mixed
178+
* @return object
179179
*/
180180
protected static function getSharedInstance(string $key, ...$params)
181181
{
@@ -239,7 +239,7 @@ public static function locator(bool $getShared = true)
239239
* Provides the ability to perform case-insensitive calling of service
240240
* names.
241241
*
242-
* @return mixed
242+
* @return object|null
243243
*/
244244
public static function __callStatic(string $name, array $arguments)
245245
{
@@ -296,7 +296,7 @@ public static function resetSingle(string $name)
296296
/**
297297
* Inject mock object for testing.
298298
*
299-
* @param mixed $mock
299+
* @param object $mock
300300
*/
301301
public static function injectMock(string $name, $mock)
302302
{
@@ -309,7 +309,7 @@ public static function injectMock(string $name, $mock)
309309
* looks for the service method in each, returning an instance of
310310
* the service, if available.
311311
*
312-
* @return mixed
312+
* @return object|null
313313
*
314314
* @deprecated
315315
*

system/Config/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Config
2323
* @param string $name Configuration name
2424
* @param bool $getShared Use shared instance
2525
*
26-
* @return mixed|null
26+
* @return object|null
2727
*/
2828
public static function get(string $name, bool $getShared = true)
2929
{

0 commit comments

Comments
 (0)