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

Fix incorrect strpos argument order (#287)

Detected via static analysis
This commit is contained in:
Tyson Andre 2017-11-11 18:48:43 -08:00 committed by Matthew Brown
parent a0a9128375
commit d9a142ac7d

View File

@ -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) {