File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 6
6
use Illuminate \Routing \Route ;
7
7
use Illuminate \Support \Facades \Log ;
8
8
use Spatie \LaravelData \Data ;
9
+ use Spatie \LaravelData \Support \Wrapping \WrapExecutionType ;
9
10
use stdClass ;
10
11
11
12
class OpenApi extends Data
@@ -62,7 +63,10 @@ public static function fromRoutes(array $routes, Command $command): self
62
63
);
63
64
}
64
65
65
- public function toArray (): array
66
+ /**
67
+ * @return array<string,mixed>
68
+ */
69
+ public function transform (bool $ transformValues = true , WrapExecutionType $ wrapExecutionType = WrapExecutionType::Disabled): array
66
70
{
67
71
// Double call to make sure all schemas are resolved
68
72
$ this ->resolveSchemas ();
@@ -77,7 +81,7 @@ public function toArray(): array
77
81
) : new stdClass (), ];
78
82
79
83
return array_merge (
80
- parent ::toArray ( ),
84
+ parent ::transform ( $ transformValues , $ wrapExecutionType ),
81
85
$ paths ,
82
86
[
83
87
'components ' => [
You can’t perform that action at this time.
0 commit comments