1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Fix count call

This commit is contained in:
Matt Brown 2020-10-28 13:10:30 -04:00
parent 4aef96bbac
commit 083102a862

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