Skip to content

Commit

Permalink
Fix #1646 - reload functions from cache when not already stubbed
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed May 16, 2019
1 parent 3599c20 commit 6b04503
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Psalm/Internal/Codebase/Scanner.php
Expand Up @@ -632,9 +632,7 @@ private function scanFile(

if ($this->codebase->register_autoload_files) {
foreach ($file_storage->functions as $function_storage) {
if ($this->codebase->register_stub_files
|| $this->codebase->functions->hasStubbedFunction($function_storage->cased_name)
) {
if (!$this->codebase->functions->hasStubbedFunction($function_storage->cased_name)) {
$this->codebase->functions->addGlobalFunction($function_storage->cased_name, $function_storage);
}
}
Expand Down

0 comments on commit 6b04503

Please sign in to comment.