diff --git a/packages/framework/src/Facades/Features.php b/packages/framework/src/Facades/Features.php index 32d365a0bfc..28271088802 100644 --- a/packages/framework/src/Facades/Features.php +++ b/packages/framework/src/Facades/Features.php @@ -13,7 +13,6 @@ use Illuminate\Support\Arr; use function is_array; -use function array_map; use function array_filter; use function extension_loaded; use function in_array; @@ -146,7 +145,7 @@ public function toArray(): array protected function boot(): array { - return array_map(fn (Feature $feature): string => $feature->value, $this->getConfiguredFeatures()); + return Arr::map($this->getConfiguredFeatures(), fn (Feature $feature): string => $feature->value); } /** @return array */