Skip to content

Commit d79c148

Browse files
fix: Normalize path to avoid issue on Windows (#862)
Closes #810
1 parent 5eb242b commit d79c148

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Console/ConsoleScoper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ private static function getFiles(Configuration $config, string $outputDir): arra
180180
Assert::notNull($commonDirectoryPath);
181181

182182
$mapFiles = static fn (array $inputFileTuple) => [
183-
$inputFileTuple[0],
183+
Path::normalize($inputFileTuple[0]),
184184
$inputFileTuple[1],
185-
$outputDir.str_replace($commonDirectoryPath, '', $inputFileTuple[0]),
185+
$outputDir.str_replace($commonDirectoryPath, '', Path::normalize($inputFileTuple[0])),
186186
];
187187

188188
return [

0 commit comments

Comments
 (0)