Skip to content

Commit

Permalink
Skip files from broken Composer installations
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jun 16, 2020
1 parent 4cf0141 commit d1990b8
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,16 @@ public function create(string $projectInstallationPath): ?SourceLocator
);

foreach ($classMapDirectories as $classMapDirectory) {
if (!is_dir($classMapDirectory)) {
continue;
}
$locators[] = $this->optimizedDirectorySourceLocatorRepository->getOrCreate($classMapDirectory);
}

foreach (array_merge($classMapFiles, $filePaths) as $file) {
if (!is_file($file)) {
continue;
}
$locators[] = $this->optimizedSingleFileSourceLocatorRepository->getOrCreate($file);
}

Expand Down

0 comments on commit d1990b8

Please sign in to comment.