analyse/laravel/redundant-collection-call
In the analyse-recommended preset and every stricter one. Report only. Runs when laravel is installed. Upstream gates: noUnnecessaryCollectionCall (default true; noUnnecessaryCollectionCallOnly/Except).
Configuration
[analyse.rules]
"laravel/redundant-collection-call" = "on"
To skip it in some files or lines, add an ignore comment.
Replaces
NoUnnecessaryCollectionCallRule(phpstan-classes)larastan.noUnnecessaryCollectionCall(larastan)