1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Fix nested requires in different directories

This commit is contained in:
Matt Brown 2017-04-05 14:37:22 -04:00
parent 0ad8e2b6fc
commit d65221fbe4

View File

@ -772,7 +772,7 @@ class StatementsChecker extends SourceChecker implements StatementsSource
$path_to_file = getcwd() . DIRECTORY_SEPARATOR . $path_to_file;
}
} else {
$path_to_file = self::getPathTo($stmt->expr, $this->getFileName());
$path_to_file = self::getPathTo($stmt->expr, $this->getCheckedFileName());
}
if ($path_to_file) {