diff --git a/src/Psalm/Internal/Provider/FileProvider.php b/src/Psalm/Internal/Provider/FileProvider.php index 9c06cfd6a..36d60b27e 100644 --- a/src/Psalm/Internal/Provider/FileProvider.php +++ b/src/Psalm/Internal/Provider/FileProvider.php @@ -89,7 +89,7 @@ class FileProvider */ public function isOpen(string $file_path) { - return isset($this->open_files[strtolower($file_path)]); + return isset($this->temp_files[strtolower($file_path)]) || isset($this->open_files[strtolower($file_path)]); } /**