From 2c70a1a72aa40cb066dcf23abf05c435d6dcaf4e Mon Sep 17 00:00:00 2001 From: Tomasz Mlynski Date: Tue, 14 Dec 2021 20:00:17 +0100 Subject: [PATCH] Use flag instead of `DirectoryIterator::isDot()` --- src/Psalm/Config/FileFilter.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Psalm/Config/FileFilter.php b/src/Psalm/Config/FileFilter.php index 71f046998..beddce22b 100644 --- a/src/Psalm/Config/FileFilter.php +++ b/src/Psalm/Config/FileFilter.php @@ -1,6 +1,7 @@ rewind(); while ($iterator->valid()) { - if (!$iterator->isDot() && $iterator->isLink()) { + if ($iterator->isLink()) { $linked_path = readlink($iterator->getPathname()); if (stripos($linked_path, $directory_path) !== 0) {