File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 11<?php
2+
23declare (strict_types=1 );
34
45namespace Webfox \InertiaDataProviders ;
56
6- use ReflectionClass ;
7+ use Illuminate \ Contracts \ Support \ Arrayable ;
78use Inertia \LazyProp ;
89use Inertia \Response ;
10+ use ReflectionClass ;
911use ReflectionMethod ;
10- use ReflectionProperty ;
1112use ReflectionNamedType ;
13+ use ReflectionProperty ;
1214use Symfony \Component \VarDumper \VarDumper ;
13- use Illuminate \Contracts \Support \Arrayable ;
1415
1516abstract class DataProvider implements Arrayable
1617{
@@ -52,8 +53,9 @@ public function toArray(): array
5253 public function dump (): static
5354 {
5455 $ response = new Response ('' , []);
55- $ props = $ response ->resolvePropertyInstances ($ this ->toArray (), request ());
56+ $ props = $ response ->resolvePropertyInstances ($ this ->toArray (), request ());
5657 VarDumper::dump ($ props );
58+
5759 return $ this ;
5860 }
5961
You can’t perform that action at this time.
0 commit comments