1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

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.
This commit is contained in:
Ramon Bakker 2019-05-08 14:40:26 +02:00 committed by Matthew Brown
parent 111abf82da
commit 6a473f6e71

View File

@ -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)];
}