From 6a473f6e7191bf372655901e66587117acd808f3 Mon Sep 17 00:00:00 2001 From: Ramon Bakker Date: Wed, 8 May 2019 14:40:26 +0200 Subject: [PATCH] Fix isset check Check if index exists in the array with open files, instead of checking if index exists in the array with temporary files. --- src/Psalm/Internal/Provider/FileProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psalm/Internal/Provider/FileProvider.php b/src/Psalm/Internal/Provider/FileProvider.php index 2cec2d519..9c06cfd6a 100644 --- a/src/Psalm/Internal/Provider/FileProvider.php +++ b/src/Psalm/Internal/Provider/FileProvider.php @@ -24,7 +24,7 @@ class FileProvider return $this->temp_files[strtolower($file_path)]; } - if (isset($this->temp_files[strtolower($file_path)])) { + if (isset($this->open_files[strtolower($file_path)])) { return $this->open_files[strtolower($file_path)]; }