Skip to content

Commit f7f9c37

Browse files
committed
Use array helper to match code style
1 parent 89d735d commit f7f9c37

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/framework/src/Facades/Features.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use Illuminate\Support\Arr;
1414

1515
use function is_array;
16-
use function array_map;
1716
use function array_filter;
1817
use function extension_loaded;
1918
use function in_array;
@@ -146,7 +145,7 @@ public function toArray(): array
146145

147146
protected function boot(): array
148147
{
149-
return array_map(fn (Feature $feature): string => $feature->value, $this->getConfiguredFeatures());
148+
return Arr::map($this->getConfiguredFeatures(), fn (Feature $feature): string => $feature->value);
150149
}
151150

152151
/** @return array<Feature> */

0 commit comments

Comments
 (0)