1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

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

This commit is contained in:
Brown 2019-05-16 13:32:10 -04:00
parent 3599c20316
commit 6b04503cc4

View File

@ -632,9 +632,7 @@ class Scanner
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);
}
}