Skip to content

Commit

Permalink
Merge pull request #7432 from ping-yee/replace-mixed-config
Browse files Browse the repository at this point in the history
docs: replace type `mixed` at Config class.
  • Loading branch information
kenjis authored Apr 19, 2023
2 parents b38a949 + 939debe commit 7811d2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions system/Config/BaseService.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ class BaseService
*
* $key must be a name matching a service.
*
* @param mixed ...$params
* @param array|bool|float|int|object|string|null ...$params
*
* @return mixed
* @return object
*/
protected static function getSharedInstance(string $key, ...$params)
{
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
{
Expand All @@ -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
*
Expand Down
2 changes: 1 addition & 1 deletion system/Config/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 7811d2a

Please sign in to comment.