Skip to content

Commit 0c18b7c

Browse files
committed
Update GenerateRoutes.php
1 parent 316c507 commit 0c18b7c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/console/commands/GenerateRoutes.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,11 @@ public function __construct(
5050
protected function getInputFilePath(?string $input): string
5151
{
5252
if ($input) {
53-
return realpath($input);
53+
if (($realPath = realpath($input)) !== false) {
54+
return $realPath;
55+
}
56+
57+
return $input;
5458
}
5559

5660
return $this->app->getPath() . '/http/routing/openapi.yaml';

0 commit comments

Comments
 (0)