VersionCompareFuncCallToConstantRector

Changes use of call to version compare function to use of PHP version constant

 class SomeClass
 {
     public function run()
     {
-        version_compare(PHP_VERSION, '5.3.0', '<');
+        PHP_VERSION_ID < 50300;
     }
 }

Configure your rector.php:

<?php

use Rector\CodingStyle\Rector\FuncCall\VersionCompareFuncCallToConstantRector;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
    ->withRules([
        VersionCompareFuncCallToConstantRector::class,
    ]);
SETS:  Coding Style