lint/types/add-param-type-array-any-all
In the lint-strict preset. In Rector’s rector/type-declaration set. Unsafe fix: it can change behavior.
What it does
Add a type to an untyped array_any()/array_all() closure param, based on the array item type
Configuration
[lint.rules]
"types/add-param-type-array-any-all" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
AddArrayAnyAllClosureParamType(rector)