1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Fix output in tests (for non-existent files)

This commit is contained in:
Matt Brown 2020-10-25 16:31:42 -04:00
parent b26983cc34
commit 2ea41b245c

View File

@ -1302,6 +1302,10 @@ class Config
public function shortenFileName(string $to): string
{
if (!is_file($to)) {
return $to;
}
$from = $this->base_dir;
// some compatibility fixes for Windows paths