lint/phpunit/prefer-expect-php-error
Not in any preset. In Rector’s rector-phpunit/composer-based set. Needs the phpunit extension. Safe fix.
What it does
Use explicit API for expecting PHP errors, warnings, and notices
Configuration
[lint.rules]
"phpunit/prefer-expect-php-error" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
ExplicitPhpErrorApi(rector-phpunit)