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 89d735d commit f7f9c37Copy full SHA for f7f9c37
packages/framework/src/Facades/Features.php
@@ -13,7 +13,6 @@
13
use Illuminate\Support\Arr;
14
15
use function is_array;
16
-use function array_map;
17
use function array_filter;
18
use function extension_loaded;
19
use function in_array;
@@ -146,7 +145,7 @@ public function toArray(): array
146
145
147
protected function boot(): array
148
{
149
- return array_map(fn (Feature $feature): string => $feature->value, $this->getConfiguredFeatures());
+ return Arr::map($this->getConfiguredFeatures(), fn (Feature $feature): string => $feature->value);
150
}
151
152
/** @return array<Feature> */
0 commit comments