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:
parent
4aef96bbac
commit
083102a862
@ -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…
x
Reference in New Issue
Block a user