Skip to content

Commit 991dff7

Browse files
committed
fixed style error
1 parent 9f1263e commit 991dff7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/helpers/Swagger/AnnotationData.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ private function getFileAnnotation(): string | null
116116
$formParams[] = $fileParam;
117117
} elseif ($fileParam->fileRequestType === FileRequestType::OctetStream) {
118118
$octetParams[] = $fileParam;
119+
} elseif ($fileParam->fileRequestType === null) {
120+
throw new InternalServerException("The FileRequestType is null");
119121
} else {
120122
throw new InternalServerException("Unknown FileRequestType: " . $fileParam->fileRequestType->name);
121123
}

0 commit comments

Comments
 (0)