Skip to content

Commit bbc169d

Browse files
authored
reuse $baseUrl in computeDoc
1 parent bcffdca commit bbc169d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Swagger/Serializer/DocumentationNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ private function computeDoc(bool $v3, Documentation $documentation, \ArrayObject
702702
if ($v3) {
703703
$docs = ['openapi' => self::OPENAPI_VERSION];
704704
if ('/' !== $baseUrl) {
705-
$docs['servers'] = [['url' => $context[self::BASE_URL] ?? $this->defaultContext[self::BASE_URL]]];
705+
$docs['servers'] = [['url' => $baseUrl]]];
706706
}
707707
} else {
708708
$docs = [

0 commit comments

Comments
 (0)