services(); $services->set(TypedPropertyRector::class); $services->set(RenameFunctionRector::class) ->call('configure', [[ 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', //'hebrevc' => ['nl2br', 'hebrev'], ], ]]); $services->set(ArrayKeyExistsOnPropertyRector::class); $services->set(FilterVarToAddSlashesRector::class); $services->set(ExportToReflectionFunctionRector::class); $services->set(GetCalledClassToStaticClassRector::class); $services->set(MbStrrposEncodingArgumentPositionRector::class); $services->set(RealToFloatTypeCastRector::class); $services->set(NullCoalescingOperatorRector::class); $services->set(ReservedFnFunctionRector::class); $services->set(ClosureToArrowFunctionRector::class); $services->set(ArraySpreadInsteadOfArrayMergeRector::class); $services->set(AddLiteralSeparatorToNumberRector::class); $services->set(ChangeReflectionTypeToStringToGetNameRector::class); $services->set(RestoreDefaultNullToNullableTypePropertyRector::class); };