1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Don’t throw exception if classloader hasn’t been set

This commit is contained in:
Matt Brown 2018-03-06 17:30:54 -05:00
parent 4248cacbaf
commit d185253396

View File

@ -952,7 +952,7 @@ class Config
public function getComposerFilePathForClassLike($fq_classlike_name)
{
if (!$this->composer_class_loader) {
throw new \LogicException('Composer class loader should exist here');
return false;
}
return $this->composer_class_loader->findFile($fq_classlike_name);