Skip to content
Permalink
Browse files

Fix file path weirdness when scanning config files

  • Loading branch information...
muglug committed Jul 21, 2019
1 parent 3d4adee commit 39c437a54adbf658ce4e20e1ee67a453afdc2da2
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/Psalm/Config.php
@@ -1505,6 +1505,7 @@ public function visitStubFiles(Codebase $codebase, Progress $progress = null)
}
foreach ($stub_files as $file_path) {
$file_path = str_replace('/', DIRECTORY_SEPARATOR, $file_path);
$codebase->scanner->addFileToShallowScan($file_path);
}
@@ -1645,6 +1646,7 @@ public function visitComposerAutoloadFiles(ProjectAnalyzer $project_analyzer, Pr
$codebase->register_autoload_files = true;
foreach ($autoload_files_files as $file_path) {
$file_path = str_replace('/', DIRECTORY_SEPARATOR, $file_path);
$codebase->scanner->addFileToDeepScan($file_path);
}

0 comments on commit 39c437a

Please sign in to comment.
You can’t perform that action at this time.