Skip to content

Commit 30e9d2b

Browse files
committed
unify casing in BaseService::injectMock
1 parent 2af3cbd commit 30e9d2b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎system/Config/BaseService.php‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,9 @@ public static function resetSingle(string $name)
442442
*/
443443
public static function injectMock(string $name, $mock)
444444
{
445-
static::$instances[$name] = $mock;
446-
static::$mocks[strtolower($name)] = $mock;
445+
$name = strtolower($name);
446+
static::$instances[$name] = $mock;
447+
static::$mocks[$name] = $mock;
447448
}
448449

449450
/**

0 commit comments

Comments
 (0)