diff --git a/src/Psalm/Checker/ProjectChecker.php b/src/Psalm/Checker/ProjectChecker.php index d495d6f8e..64b975ec1 100644 --- a/src/Psalm/Checker/ProjectChecker.php +++ b/src/Psalm/Checker/ProjectChecker.php @@ -152,6 +152,10 @@ class ProjectChecker $filetype_handlers = $config->getFiletypeHandlers(); foreach ($file_list as $file_name) { + if (!file_exists($file_name)) { + continue; + } + $extension = pathinfo($file_name, PATHINFO_EXTENSION); if ($debug) {