lint/php-8.0/prefer-str-ends-with
In the lint-strict preset. In Rector’s rector/php-polyfills, rector/php80 sets. Unsafe fix: it can change behavior. Runs only when [php] version is 8.0 or later.
What it does
Change helper functions to str_ends_with()
Configuration
[lint.rules]
"php-8.0/prefer-str-ends-with" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
StrEndsWith(rector)