lint/pest/prefer-to-match
In the coding-style set. Unsafe fix: it can change behaviour. Runs when pest is installed.
What it does
Converts expect(preg_match(“/pattern/”, $str))->toBe(1) to expect($str)->toMatch(“/pattern/”)
Configuration
[lint.rules]
"pest/prefer-to-match" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
UseToMatch(pest-plugin-rector)