diff --git a/src/Psalm/Codebase/Scanner.php b/src/Psalm/Codebase/Scanner.php index 3b401a14c..238e595c3 100644 --- a/src/Psalm/Codebase/Scanner.php +++ b/src/Psalm/Codebase/Scanner.php @@ -293,8 +293,8 @@ class Scanner $this->file_storage_provider->cache->writeToCache($file_storage, $file_contents); } } else { - foreach ($file_storage->included_file_paths as $file_path) { - $this->codebase->scanner->queueFileForScanning($file_path); + foreach ($file_storage->included_file_paths as $include_file_path) { + $this->codebase->scanner->queueFileForScanning($include_file_path); } foreach ($file_storage->classlikes_in_file as $fq_classlike_name) {