diff --git a/src/Psalm/Internal/Provider/ReturnTypeProvider/StrReplaceReturnTypeProvider.php b/src/Psalm/Internal/Provider/ReturnTypeProvider/StrReplaceReturnTypeProvider.php index 94adedc08..5743ee5b8 100644 --- a/src/Psalm/Internal/Provider/ReturnTypeProvider/StrReplaceReturnTypeProvider.php +++ b/src/Psalm/Internal/Provider/ReturnTypeProvider/StrReplaceReturnTypeProvider.php @@ -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(); }