We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 316c507 commit 0c18b7cCopy full SHA for 0c18b7c
1 file changed
src/console/commands/GenerateRoutes.php
@@ -50,7 +50,11 @@ public function __construct(
50
protected function getInputFilePath(?string $input): string
51
{
52
if ($input) {
53
- return realpath($input);
+ if (($realPath = realpath($input)) !== false) {
54
+ return $realPath;
55
+ }
56
+
57
+ return $input;
58
}
59
60
return $this->app->getPath() . '/http/routing/openapi.yaml';
0 commit comments