VersionCompareFuncCallArgumentRector
Streamline the operator argument of the version_compare() function
-version_compare(PHP_VERSION, '5.6', 'gte');
+version_compare(PHP_VERSION, '5.6', 'ge');
Configure your rector.php:
<?php
use Rector\Config\RectorConfig;
use Rector\Php80\Rector\FuncCall\VersionCompareFuncCallArgumentRector;
return RectorConfig::configure()
->withRules([
VersionCompareFuncCallArgumentRector::class,
]);