mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Fix incorrect strpos argument order (#287)
Detected via static analysis
This commit is contained in:
parent
a0a9128375
commit
d9a142ac7d
@ -1738,7 +1738,7 @@ class CallChecker
|
||||
$arg->value,
|
||||
$by_ref_type,
|
||||
$context,
|
||||
$method_id && (strpos('::', $method_id) !== false || !FunctionChecker::inCallMap($method_id))
|
||||
$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