1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Constrain user-defined functions and methods

This commit is contained in:
Matthew Brown 2017-10-28 16:05:35 -04:00
parent 45df0292b1
commit 24980cd7d7

View File

@ -1679,7 +1679,8 @@ class CallChecker
$statements_checker,
$arg->value,
$by_ref_type,
$context
$context,
$method_id && (strpos('::', $method_id) !== false || !FunctionChecker::inCallMap($method_id))
);
} else {
if ($arg->value instanceof PhpParser\Node\Expr\Variable) {