diff --git a/system/Config/Factories.php b/system/Config/Factories.php index 13d60f40a4c7..43e4bf127e51 100644 --- a/system/Config/Factories.php +++ b/system/Config/Factories.php @@ -430,19 +430,19 @@ public static function reset(?string $component = null) { if ($component) { unset( - static::$options[$component], - static::$aliases[$component], - static::$instances[$component], - static::$updated[$component] + self::$options[$component], + self::$aliases[$component], + self::$instances[$component], + self::$updated[$component] ); return; } - static::$options = []; - static::$aliases = []; - static::$instances = []; - static::$updated = []; + self::$options = []; + self::$aliases = []; + self::$instances = []; + self::$updated = []; } /** @@ -500,7 +500,7 @@ public static function getBasename(string $alias): string */ public static function getComponentInstances(string $component): array { - if (! isset(static::$aliases[$component])) { + if (! isset(self::$aliases[$component])) { return [ 'options' => [], 'aliases' => [], @@ -509,8 +509,8 @@ public static function getComponentInstances(string $component): array } return [ - 'options' => static::$options[$component], - 'aliases' => static::$aliases[$component], + 'options' => self::$options[$component], + 'aliases' => self::$aliases[$component], 'instances' => self::$instances[$component], ]; } @@ -522,11 +522,11 @@ public static function getComponentInstances(string $component): array */ public static function setComponentInstances(string $component, array $data): void { - static::$options[$component] = $data['options']; - static::$aliases[$component] = $data['aliases']; - static::$instances[$component] = $data['instances']; + self::$options[$component] = $data['options']; + self::$aliases[$component] = $data['aliases']; + self::$instances[$component] = $data['instances']; - unset(static::$updated[$component]); + unset(self::$updated[$component]); } /**