Try Rector
Docs
Hire Team
Find Rule
Blog
Contact
AST
Try Rector
Docs
Hire Team
Find Rule
Blog
Contact
AST
Run Rector on your code to see what it can do for you:
// no change
PHP snippet to change
<?php round(1.5, 0, PHP_ROUND_HALF_UP);
Config
rector.php
<?php use Rector\Config\RectorConfig; use Rector\Php84\Rector\FuncCall\RoundingModeEnumRector; return RectorConfig::configure() ->withRules([ RoundingModeEnumRector::class, ]);
Run Rector
Rector version:
ac3a94
- released at 2025-05-11 00:39