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

Don’t check classes after extension_loaded call

This commit is contained in:
Matthew Brown 2018-01-12 23:47:36 -05:00
parent db7b80d391
commit 5d9ebd06d6
2 changed files with 2 additions and 5 deletions

View File

@ -88,6 +88,8 @@ class CallChecker
} else {
$context->check_classes = false;
}
} elseif ($method->parts === ['extension_loaded']) {
$context->check_classes = false;
} elseif ($method->parts === ['function_exists']) {
$context->check_functions = false;
} elseif ($method->parts === ['is_callable']) {

View File

@ -62,11 +62,6 @@ class FunctionLikeStorage
*/
public $variadic;
/**
* @var bool
*/
public $returns_by_ref;
/**
* @var bool
*/