mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Fix count call
This commit is contained in:
parent
f9adf24d6d
commit
f242845195
@ -32,7 +32,7 @@ class StrReplaceReturnTypeProvider implements \Psalm\Plugin\Hook\FunctionReturnT
|
||||
CodeLocation $code_location
|
||||
) : Type\Union {
|
||||
if (!$statements_source instanceof \Psalm\Internal\Analyzer\StatementsAnalyzer
|
||||
|| count($call_args) < 3
|
||||
|| \count($call_args) < 3
|
||||
) {
|
||||
return Type::getMixed();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user