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:
parent
0ad8e2b6fc
commit
d65221fbe4
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user