services(); $services->set(\Rector\Php72\Rector\While_\WhileEachToForeachRector::class); $services->set(\Rector\Php72\Rector\Assign\ListEachRector::class); $services->set(\Rector\Php72\Rector\Assign\ReplaceEachAssignmentWithKeyCurrentRector::class); $services->set(\Rector\Php72\Rector\Unset_\UnsetCastRector::class); $services->set(\Rector\Renaming\Rector\FuncCall\RenameFunctionRector::class)->call('configure', [[\Rector\Renaming\Rector\FuncCall\RenameFunctionRector::OLD_FUNCTION_TO_NEW_FUNCTION => [ # and imagewbmp 'jpeg2wbmp' => 'imagecreatefromjpeg', # or imagewbmp 'png2wbmp' => 'imagecreatefrompng', #migration72.deprecated.gmp_random-function # http://php.net/manual/en/migration72.deprecated.php # or gmp_random_range 'gmp_random' => 'gmp_random_bits', 'read_exif_data' => 'exif_read_data', ]]]); $services->set(\Rector\Php72\Rector\FuncCall\GetClassOnNullRector::class); $services->set(\Rector\Php72\Rector\FuncCall\IsObjectOnIncompleteClassRector::class); $services->set(\Rector\Php72\Rector\FuncCall\ParseStrWithResultArgumentRector::class); $services->set(\Rector\Php72\Rector\FuncCall\StringsAssertNakedRector::class); $services->set(\Rector\Php72\Rector\FuncCall\CreateFunctionToAnonymousFunctionRector::class); $services->set(\Rector\Php72\Rector\FuncCall\StringifyDefineRector::class); };