Skip to content

Commit

Permalink
fix: Normalize path to avoid issue on Windows (#862)
Browse files Browse the repository at this point in the history
Closes #810
  • Loading branch information
liqueurdetoile authored Oct 20, 2023
1 parent 5eb242b commit d79c148
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Console/ConsoleScoper.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ private static function getFiles(Configuration $config, string $outputDir): arra
Assert::notNull($commonDirectoryPath);

$mapFiles = static fn (array $inputFileTuple) => [
$inputFileTuple[0],
Path::normalize($inputFileTuple[0]),
$inputFileTuple[1],
$outputDir.str_replace($commonDirectoryPath, '', $inputFileTuple[0]),
$outputDir.str_replace($commonDirectoryPath, '', Path::normalize($inputFileTuple[0])),
];

return [
Expand Down

0 comments on commit d79c148

Please sign in to comment.