lint/pest/require-type-matcher-first
In the lint-recommended preset and every stricter one. In Rector’s pest/coding-style set. Needs the pest extension. Safe fix.
What it does
Ensure type-check matchers (e.g. toBeInt, toBeInstanceOf) appear before value assertions in expect() chains and consecutive expects
Configuration
[lint.rules]
"pest/require-type-matcher-first" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
EnsureTypeChecksFirst(pest-plugin-rector)