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 44
55namespace Webfox \InertiaDataProviders ;
66
7- use ReflectionClass ;
7+ use Illuminate \Contracts \Support \Arrayable ;
8+ use Illuminate \Contracts \Support \Jsonable ;
89use Inertia \LazyProp ;
910use Inertia \Response ;
11+ use ReflectionClass ;
1012use ReflectionMethod ;
11- use ReflectionProperty ;
1213use ReflectionNamedType ;
13- use Illuminate \ Contracts \ Support \ Jsonable ;
14+ use ReflectionProperty ;
1415use Symfony \Component \VarDumper \VarDumper ;
15- use Illuminate \Contracts \Support \Arrayable ;
1616use Webfox \InertiaDataProviders \AttributeNameFormatters \AttributeNameFormatter ;
1717
1818abstract class DataProvider implements Arrayable, Jsonable
@@ -52,7 +52,7 @@ public function toArray(): array
5252 ->merge ($ staticData )
5353 ->merge ($ convertedProperties )
5454 ->merge ($ convertedMethods )
55- ->mapWithKeys (fn ($ value , $ key ) => [$ this ->attributeNameFormatter ()($ key ) => $ value ])
55+ ->mapWithKeys (fn ($ value , $ key ) => [$ this ->attributeNameFormatter ()($ key ) => $ value ])
5656 ->toArray ();
5757 }
5858
You can’t perform that action at this time.
0 commit comments