Skip to content

Commit 34cbfda

Browse files
committed
Fix bug on windows cli
1 parent e1bf47f commit 34cbfda

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Main.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ protected function buildCliArguments(RouterInterface $router): void
8686
/** @var array{argv:array<string>} $_SERVER */
8787
$router->buildRouteForRequestUrl('CLI/index/index');
8888

89-
$_SERVER['argv'][0] = str_replace(':', DIRECTORY_SEPARATOR, $_SERVER['argv'][0]);
90-
$path = 'CLI' . DIRECTORY_SEPARATOR . implode(DIRECTORY_SEPARATOR, $_SERVER['argv']);
89+
$_SERVER['argv'][0] = str_replace(':', '/', $_SERVER['argv'][0]);
90+
$path = 'CLI' . '/' . implode('/', $_SERVER['argv']);
9191
$router->buildCliArguments($path);
9292
}
9393

0 commit comments

Comments
 (0)