From 54c881c192048d0de830fa8f4b7e152b2d512d83 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Tue, 9 Apr 2024 12:32:48 +0000 Subject: [PATCH] Apply fixes from StyleCI --- .../src/Framework/Concerns/Internal/MockableFeatures.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/framework/src/Framework/Concerns/Internal/MockableFeatures.php b/packages/framework/src/Framework/Concerns/Internal/MockableFeatures.php index 5b024634843..13269050a4e 100644 --- a/packages/framework/src/Framework/Concerns/Internal/MockableFeatures.php +++ b/packages/framework/src/Framework/Concerns/Internal/MockableFeatures.php @@ -5,6 +5,7 @@ namespace Hyde\Framework\Concerns\Internal; use Hyde\Enums\Feature; + use function is_array; /** @@ -36,6 +37,7 @@ public static function resolveMockedInstance(Feature|string $feature): ?bool if ($feature instanceof Feature) { $feature = $feature->value; } + return static::$mockedInstances[$feature] ?? null; }