Skip to content
Permalink
Browse files

Add slash

  • Loading branch information...
muglug committed Jul 21, 2019
1 parent 272ab35 commit c5d1c9aa547c6f0a5bbfab2fb75d7f26caee7167
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/Psalm/Config.php
  2. +1 −1 src/Psalm/FileBasedPluginAdapter.php
@@ -1505,7 +1505,7 @@ public function visitStubFiles(Codebase $codebase, Progress $progress = null)
}
foreach ($stub_files as $file_path) {
$file_path = str_replace(['/', '\\'], DIRECTORY_SEPARATOR, $file_path);
$file_path = \str_replace(['/', '\\'], DIRECTORY_SEPARATOR, $file_path);
$codebase->scanner->addFileToShallowScan($file_path);
}
@@ -1646,7 +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);
$file_path = \str_replace(['/', '\\'], DIRECTORY_SEPARATOR, $file_path);
$codebase->scanner->addFileToDeepScan($file_path);
}
@@ -50,7 +50,7 @@ private function getPluginClassForPath(string $path): string
{
$codebase = $this->codebase;
$path = str_replace(['/', '\\'], DIRECTORY_SEPARATOR, $path);
$path = \str_replace(['/', '\\'], DIRECTORY_SEPARATOR, $path);
$file_storage = $codebase->createFileStorageForPath($path);
$file_to_scan = new FileScanner($path, $this->config->shortenFileName($path), true);

0 comments on commit c5d1c9a

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