1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-12 09:19:40 +01:00

Do not check deleted files

This commit is contained in:
Matthew Brown 2016-10-08 20:49:14 -04:00
parent eecd35f10b
commit 566fa8e838

View File

@ -152,6 +152,10 @@ class ProjectChecker
$filetype_handlers = $config->getFiletypeHandlers(); $filetype_handlers = $config->getFiletypeHandlers();
foreach ($file_list as $file_name) { foreach ($file_list as $file_name) {
if (!file_exists($file_name)) {
continue;
}
$extension = pathinfo($file_name, PATHINFO_EXTENSION); $extension = pathinfo($file_name, PATHINFO_EXTENSION);
if ($debug) { if ($debug) {