Skip to content

Commit 322ae9a

Browse files
committed
Fix Windows
1 parent a48c334 commit 322ae9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Parser/PathRoutingParser.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ public function setAnalysedFiles(array $files): void
4141

4242
public function parseFile(string $file): array
4343
{
44-
$file = $this->fileHelper->normalizePath($file, '/');
45-
if (strpos($file, 'vendor/jetbrains/phpstorm-stubs') !== false) {
44+
if (strpos($this->fileHelper->normalizePath($file, '/'), 'vendor/jetbrains/phpstorm-stubs') !== false) {
4645
return $this->php8Parser->parseFile($file);
4746
}
4847

48+
$file = $this->fileHelper->normalizePath($file);
4949
if (!isset($this->analysedFiles[$file])) {
5050
return $this->currentPhpVersionSimpleParser->parseFile($file);
5151
}

0 commit comments

Comments
 (0)