mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +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,
|
$arg->value,
|
||||||
$by_ref_type,
|
$by_ref_type,
|
||||||
$context,
|
$context,
|
||||||
$method_id && (strpos('::', $method_id) !== false || !FunctionChecker::inCallMap($method_id))
|
$method_id && (strpos($method_id, '::') !== false || !FunctionChecker::inCallMap($method_id))
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
if ($arg->value instanceof PhpParser\Node\Expr\Variable) {
|
if ($arg->value instanceof PhpParser\Node\Expr\Variable) {
|
||||||
|
Loading…
Reference in New Issue
Block a user