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 a1fecf2 commit d27a416Copy full SHA for d27a416
packages/framework/src/Facades/Features.php
@@ -164,10 +164,10 @@ protected function getConfiguredFeatures(): array
164
public static function mock(string|array $feature, bool $enabled = null): void
165
{
166
foreach (is_array($feature) ? $feature : [$feature => $enabled] as $feature => $enabled) {
167
- if ($enabled !== true) {
168
- Hyde::features()->features = array_filter(Hyde::features()->features, fn (string $search): bool => $search !== $feature);
169
- } else {
+ if ($enabled === true) {
170
Hyde::features()->features[] = $feature;
+ } else {
+ Hyde::features()->features = array_filter(Hyde::features()->features, fn (string $search): bool => $search !== $feature);
171
}
172
173
0 commit comments