lint/php-8.4/prefer-round-mode-enum
In the lint-recommended preset and every stricter one. In Rector’s rector/php84 set. Safe fix. Runs only when [php] version is 8.4 or later.
What it does
Replace rounding mode constant to RoundMode enum in round()
Configuration
[lint.rules]
"php-8.4/prefer-round-mode-enum" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
RoundingModeEnum(rector)