1
0
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:
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, $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) {