Skip to content
Permalink
Browse files

Fix #1646 - reload functions from cache when not already stubbed

  • Loading branch information...
muglug committed May 16, 2019
1 parent 3599c20 commit 6b04503cc4010a3050e8c09f9218e31b1eb3615c
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/Psalm/Internal/Codebase/Scanner.php
@@ -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);
}
}

0 comments on commit 6b04503

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