Skip to content

Commit bef76f6

Browse files
committed
Fixed a few typos
1 parent 88fa50f commit bef76f6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Annotations/AnnotationGenerator.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,13 @@ function compileOperationLines(string $path, string $opId, string $plugin, strin
209209

210210
foreach ($params['custom'] ?? [] as $param) {
211211
// TODO - Finish implementing this
212-
$lines[] = ' @OA\Parameter(),';
212+
$lines[] = ' @OA\Parameter(';
213213
$lines[] = ' name="' . $param['name'] . '",';
214214
$lines[] = ' in="query",';
215-
$lines[] = ' required="' . $param['required'] . '",';
215+
$lines[] = " required={$param['required']},";
216216
$lines[] = ' @OA\Schema(';
217-
$lines[] = ' type="' . $param['type'] . '",';
218-
$lines[] = ' ),';
217+
$lines[] = ' type="' . $param['type'] . '"';
218+
$lines[] = ' )';
219219
$lines[] = ' ),';
220220
}
221221

0 commit comments

Comments
 (0)