We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15ca745 commit a1fecf2Copy full SHA for a1fecf2
packages/framework/src/Facades/Features.php
@@ -163,9 +163,7 @@ protected function getConfiguredFeatures(): array
163
*/
164
public static function mock(string|array $feature, bool $enabled = null): void
165
{
166
- $features = is_array($feature) ? $feature : [$feature => $enabled];
167
-
168
- foreach ($features as $feature => $enabled) {
+ foreach (is_array($feature) ? $feature : [$feature => $enabled] as $feature => $enabled) {
169
if ($enabled !== true) {
170
Hyde::features()->features = array_filter(Hyde::features()->features, fn (string $search): bool => $search !== $feature);
171
} else {
0 commit comments