Skip to content

Commit f018bc9

Browse files
committed
use PSR-7 for OpenAPI
1 parent ddaca7a commit f018bc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tqdev/PhpCrudApi/OpenApi/OpenApiBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ private function getServerUrl(ServerRequestInterface $request): string
3636
public function build(ServerRequestInterface $request): OpenApiDefinition
3737
{
3838
$this->openapi->set("openapi", "3.0.0");
39-
if (!$this->openapi->has("servers") && isset($_SERVER['REQUEST_URI'])) {
39+
if (!$this->openapi->has("servers")) {
4040
$this->openapi->set("servers|0|url", $this->getServerUrl($request));
4141
}
4242
if ($this->records) {

0 commit comments

Comments
 (0)