File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -325,7 +325,7 @@ public function getParamExample(array $param): string
325
325
return match ($ type ) {
326
326
self ::TYPE_ARRAY => '[] ' ,
327
327
self ::TYPE_BOOLEAN => 'False ' ,
328
- self ::TYPE_FILE => 'InputFile(path: \' ./path-to-files/image.jpg \' , filename: \' image.jpg \') ' ,
328
+ self ::TYPE_FILE => 'InputFile.from_path( \' file.png \') ' ,
329
329
self ::TYPE_INTEGER , self ::TYPE_NUMBER => '0 ' ,
330
330
self ::TYPE_OBJECT => '{} ' ,
331
331
self ::TYPE_STRING => "'' " ,
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ public function getParamExample(array $param): string
196
196
return match ($ type ) {
197
197
self ::TYPE_ARRAY => '[] ' ,
198
198
self ::TYPE_BOOLEAN => 'false ' ,
199
- self ::TYPE_FILE => 'InputFile(path: \' . /path-to-files/image.jpg \', filename: \' image.jpg \') ' ,
199
+ self ::TYPE_FILE => 'InputFile.fromPath( \' /path/to/file \', \' filename \') ' ,
200
200
self ::TYPE_INTEGER , self ::TYPE_NUMBER => '0 ' ,
201
201
self ::TYPE_OBJECT => '{} ' ,
202
202
self ::TYPE_STRING => "'' " ,
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ public function getParamExample(array $param): string
138
138
return match ($ type ) {
139
139
self ::TYPE_ARRAY => '[] ' ,
140
140
self ::TYPE_BOOLEAN => 'false ' ,
141
- self ::TYPE_FILE => 'InputFile(path: \' . /path-to-files/image.jpg \', filename: \' image.jpg \') ' ,
141
+ self ::TYPE_FILE => 'InputFile.fromPath( \' /path/to/file \', \' filename \') ' ,
142
142
self ::TYPE_INTEGER , self ::TYPE_NUMBER => '0 ' ,
143
143
self ::TYPE_OBJECT => '{} ' ,
144
144
self ::TYPE_STRING => "'' " ,
You can’t perform that action at this time.
0 commit comments