File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/framework/src/Facades Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1010use Hyde \Foundation \Concerns \Feature ;
1111use Hyde \Support \Concerns \Serializable ;
1212use Hyde \Support \Contracts \SerializableContract ;
13+ use Illuminate \Support \Arr ;
1314
1415use function is_array ;
1516use function array_map ;
@@ -138,10 +139,9 @@ public static function hasTorchlight(): bool
138139 */
139140 public function toArray (): array
140141 {
141- return collect (Feature::cases ())
142- ->mapWithKeys (fn (Feature $ feature ): array => [
143- $ feature ->value => in_array ($ feature ->value , $ this ->features ),
144- ])->toArray ();
142+ return Arr::mapWithKeys (Feature::cases (), fn (Feature $ feature ): array => [
143+ $ feature ->value => in_array ($ feature ->value , $ this ->features ),
144+ ]);
145145 }
146146
147147 protected function boot (): array
You can’t perform that action at this time.
0 commit comments