lint/pest/prefer-to-contain
In the lint-strict preset. In Rector’s pest/coding-style set. Needs the pest extension. Unsafe fix: it can change behavior.
What it does
Converts in_array() checks to toContain() matcher
Configuration
[lint.rules]
"pest/prefer-to-contain" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
UseToContain(pest-plugin-rector)