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:
parent
3599c20316
commit
6b04503cc4
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user