Changes ereg*() to preg*() calls
-ereg("hi")
+preg_match("#hi#");
Configure your rector.php
:
<?php
use Rector\Config\RectorConfig;
use Rector\Php70\Rector\FuncCall\EregToPregMatchRector;
return RectorConfig::configure()
->withRules([
EregToPregMatchRector::class,
]);