Skip to content

Commit

Permalink
style: fix code-style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Goodmain committed Sep 25, 2023
1 parent 1d8a9cb commit b672b96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Validators/SwaggerSpecValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ protected function validateBodyParameters(array $parameters, string $operationId
);
}

if (!empty($bodyParams) && $formParamsCount) {
if ($bodyParamsCount && $formParamsCount) {
throw new InvalidSwaggerSpecException(
"Operation '{$operationId}' has body and formData parameters. Only one or the other is allowed."
);
Expand Down

0 comments on commit b672b96

Please sign in to comment.