services(); $services->set(\Rector\Php74\Rector\Property\TypedPropertyRector::class); $services->set(\Rector\Renaming\Rector\FuncCall\RenameFunctionRector::class)->call('configure', [[\Rector\Renaming\Rector\FuncCall\RenameFunctionRector::OLD_FUNCTION_TO_NEW_FUNCTION => [ #the_real_type # https://wiki.php.net/rfc/deprecations_php_7_4 'is_real' => 'is_float', #apache_request_headers_function # https://wiki.php.net/rfc/deprecations_php_7_4 'apache_request_headers' => 'getallheaders', ]]]); $services->set(\Rector\Php74\Rector\FuncCall\ArrayKeyExistsOnPropertyRector::class); $services->set(\Rector\Php74\Rector\FuncCall\FilterVarToAddSlashesRector::class); $services->set(\Rector\Php74\Rector\StaticCall\ExportToReflectionFunctionRector::class); $services->set(\Rector\Php74\Rector\FuncCall\GetCalledClassToStaticClassRector::class); $services->set(\Rector\Php74\Rector\FuncCall\MbStrrposEncodingArgumentPositionRector::class); $services->set(\Rector\Php74\Rector\Double\RealToFloatTypeCastRector::class); $services->set(\Rector\Php74\Rector\Assign\NullCoalescingOperatorRector::class); $services->set(\Rector\Php74\Rector\Function_\ReservedFnFunctionRector::class); $services->set(\Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector::class); $services->set(\Rector\Php74\Rector\FuncCall\ArraySpreadInsteadOfArrayMergeRector::class); $services->set(\Rector\Php74\Rector\LNumber\AddLiteralSeparatorToNumberRector::class); $services->set(\Rector\Php74\Rector\MethodCall\ChangeReflectionTypeToStringToGetNameRector::class); $services->set(\Rector\Php74\Rector\Property\RestoreDefaultNullToNullableTypePropertyRector::class); };