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:
parent
111abf82da
commit
6a473f6e71
@ -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)];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user