1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Only add linked directories

This commit is contained in:
Brown 2019-01-07 15:49:05 -05:00
parent 14f456e160
commit 5d5fbb1e9c

View File

@ -161,7 +161,9 @@ class FileFilter
$filter->declare_strict_types[$directory_path] = true;
}
$filter->addDirectory(readlink($iterator->getPathName()));
if (is_dir($linked_path)) {
$filter->addDirectory($linked_path);
}
}
}