Skip to content
Browse files

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.
  • Loading branch information...
ramon-b authored and muglug committed May 8, 2019
1 parent 111abf8 commit 6a473f6e7191bf372655901e66587117acd808f3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Psalm/Internal/Provider/FileProvider.php
@@ -24,7 +24,7 @@ public function getContents($file_path, bool $go_to_source = false)
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)];

0 comments on commit 6a473f6

Please sign in to comment.
You can’t perform that action at this time.