lint/pest/prefer-to-have-length
In the coding-style set. Unsafe fix: it can change behaviour. Runs when pest is installed.
What it does
Converts strlen()/mb_strlen() comparisons to toHaveLength() matcher
Configuration
[lint.rules]
"pest/prefer-to-have-length" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
UseToHaveLength(pest-plugin-rector)