File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -67,13 +67,13 @@ public static function getIndexSettings(): array
67
67
68
68
private static function filter ($ type , $ initialValue ): array
69
69
{
70
- [$ data , $ classes ] = Arr:: partition (
71
- Eventy:: filter ( ' index. ' . static :: getModelName () . ' . ' . $ type , $ initialValue ),
72
- fn ( $ value , $ key ) => is_string ( $ key )
73
- );
70
+ [$ data , $ classes ] = collect (Eventy:: filter ( ' index. ' . static :: getModelName () . ' . ' . $ type , $ initialValue ))
71
+ -> partition ( fn ( $ value , $ key ) => is_string ( $ key ));
72
+
73
+ $ data = $ data -> toArray ( );
74
74
75
75
// Execute all the classes and merge their output with the data
76
- collect ( $ classes)
76
+ $ classes
77
77
->map (Arr::wrap (...))
78
78
->filter (fn ($ class ) => count ($ class ))
79
79
->each (function ($ class ) use ($ type , &$ data ) {
You can’t perform that action at this time.
0 commit comments