Code
- collection_functions.php ➔ toArray()
- collection_functions.php ➔ distinct()
- collection_functions.php ➔ size()
- collection_functions.php ➔ reverse()
- collection_functions.php ➔ values()
- collection_functions.php ➔ keys()
- collection_functions.php ➔ cycle()
- collection_functions.php ➔ shuffle()
- collection_functions.php ➔ isEmpty()
- collection_functions.php ➔ isNotEmpty()
- collection_functions.php ➔ frequencies()
- collection_functions.php ➔ first()
- collection_functions.php ➔ last()
- collection_functions.php ➔ map()
- collection_functions.php ➔ filter()
- collection_functions.php ➔ concat()
- collection_functions.php ➔ reduce()
- collection_functions.php ➔ flatten()
- collection_functions.php ➔ sort()
- collection_functions.php ➔ slice()
- collection_functions.php ➔ groupBy()
- collection_functions.php ➔ each()
- collection_functions.php ➔ get()
- collection_functions.php ➔ getOrDefault()
- collection_functions.php ➔ find()
- collection_functions.php ➔ indexBy()
- collection_functions.php ➔ countBy()
- collection_functions.php ➔ every()
- collection_functions.php ➔ some()
- collection_functions.php ➔ contains()
- collection_functions.php ➔ reduceRight()
- collection_functions.php ➔ take()
- collection_functions.php ➔ drop()
- collection_functions.php ➔ iterate()
- collection_functions.php ➔ reject()
- collection_functions.php ➔ dropLast()
- collection_functions.php ➔ interpose()
- collection_functions.php ➔ interleave()
- collection_functions.php ➔ prepend()
- collection_functions.php ➔ append()
- collection_functions.php ➔ dropWhile()
- collection_functions.php ➔ takeWhile()
- collection_functions.php ➔ mapcat()
- collection_functions.php ➔ splitAt()
- collection_functions.php ➔ splitWith()
- collection_functions.php ➔ reductions()
- collection_functions.php ➔ takeNth()
- collection_functions.php ➔ partition()
- collection_functions.php ➔ partitionBy()
- collection_functions.php ➔ repeat()
- collection_functions.php ➔ range()
- collection_functions.php ➔ isCollection()
- collection_functions.php ➔ duplicate()
- collection_functions.php ➔ dereferenceKeyValue()
- collection_functions.php ➔ realize()
- collection_functions.php ➔ groupByKey()
- collection_functions.php ➔ second()
- collection_functions.php ➔ combine()
- collection_functions.php ➔ except()
- collection_functions.php ➔ only()
- collection_functions.php ➔ diff()
- collection_functions.php ➔ intersect()
- collection_functions.php ➔ flip()
- collection_functions.php ➔ has()
- collection_functions.php ➔ zip()
- collection_functions.php ➔ extract()
- collection_functions.php ➔ sizeIs()
- collection_functions.php ➔ sizeIsLessThan()
- collection_functions.php ➔ sizeIsGreaterThan()
- collection_functions.php ➔ sizeIsBetween()
- collection_functions.php ➔ sum()
- collection_functions.php ➔ average()
- collection_functions.php ➔ max()
- collection_functions.php ➔ min()
- collection_functions.php ➔ toString()
- collection_functions.php ➔ replace()
- collection_functions.php ➔ replaceByKeys()
- collection_functions.php ➔ dump()
There are different options of fixing this problem.
If you want to be on the safe side, you can add an additional type-check:
If you are sure that the expression is traversable, you might want to add a doc comment cast to improve IDE auto-completion and static analysis:
Mark the issue as a false-positive: Just hover the remove button, in the top-right corner of this issue for more options.