lint/types/prefer-narrow-param-type
In the types set. Unsafe fix: it can change behaviour.
What it does
Narrow an already nullable array_any()/array_all()/array_find()/array_find_key() closure param to the non-nullable array item type
Configuration
[lint.rules]
"types/prefer-narrow-param-type" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
NarrowArrayAnyAllNullableParamType(rector)