lint/php-8.0/prefer-str-contains-over-mb-strpos
In the lint-strict preset. In Rector’s rector/php-polyfills set. Unsafe fix: it can change behavior. Runs only when [php] version is 8.0 or later.
What it does
Replace mb_strpos() !== false and mb_strstr() with str_contains()
Configuration
[lint.rules]
"php-8.0/prefer-str-contains-over-mb-strpos" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
MbStrContains(rector)