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 4
4
5
5
namespace Webfox \InertiaDataProviders ;
6
6
7
- use ReflectionClass ;
7
+ use Illuminate \Contracts \Support \Arrayable ;
8
+ use Illuminate \Contracts \Support \Jsonable ;
8
9
use Inertia \LazyProp ;
9
10
use Inertia \Response ;
11
+ use ReflectionClass ;
10
12
use ReflectionMethod ;
11
- use ReflectionProperty ;
12
13
use ReflectionNamedType ;
13
- use Illuminate \ Contracts \ Support \ Jsonable ;
14
+ use ReflectionProperty ;
14
15
use Symfony \Component \VarDumper \VarDumper ;
15
- use Illuminate \Contracts \Support \Arrayable ;
16
16
use Webfox \InertiaDataProviders \AttributeNameFormatters \AttributeNameFormatter ;
17
17
18
18
abstract class DataProvider implements Arrayable, Jsonable
@@ -52,7 +52,7 @@ public function toArray(): array
52
52
->merge ($ staticData )
53
53
->merge ($ convertedProperties )
54
54
->merge ($ convertedMethods )
55
- ->mapWithKeys (fn ($ value , $ key ) => [$ this ->attributeNameFormatter ()($ key ) => $ value ])
55
+ ->mapWithKeys (fn ($ value , $ key ) => [$ this ->attributeNameFormatter ()($ key ) => $ value ])
56
56
->toArray ();
57
57
}
58
58
You can’t perform that action at this time.
0 commit comments