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:
parent
45df0292b1
commit
24980cd7d7
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user