1
0
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:
Matt Brown 2020-10-28 13:10:30 -04:00 committed by Daniil Gentili
parent f9adf24d6d
commit f242845195
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -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();
}