2020-07-18 18:57:24 +02:00
|
|
|
<?php
|
|
|
|
|
2021-05-09 20:15:43 +00:00
|
|
|
declare (strict_types=1);
|
2021-05-10 00:23:30 +00:00
|
|
|
namespace RectorPrefix20210510;
|
2020-07-18 18:57:24 +02:00
|
|
|
|
|
|
|
use Rector\Php74\Rector\Assign\NullCoalescingOperatorRector;
|
|
|
|
use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector;
|
|
|
|
use Rector\Php74\Rector\Double\RealToFloatTypeCastRector;
|
|
|
|
use Rector\Php74\Rector\FuncCall\ArrayKeyExistsOnPropertyRector;
|
|
|
|
use Rector\Php74\Rector\FuncCall\ArraySpreadInsteadOfArrayMergeRector;
|
|
|
|
use Rector\Php74\Rector\FuncCall\FilterVarToAddSlashesRector;
|
|
|
|
use Rector\Php74\Rector\FuncCall\GetCalledClassToStaticClassRector;
|
|
|
|
use Rector\Php74\Rector\FuncCall\MbStrrposEncodingArgumentPositionRector;
|
|
|
|
use Rector\Php74\Rector\Function_\ReservedFnFunctionRector;
|
|
|
|
use Rector\Php74\Rector\LNumber\AddLiteralSeparatorToNumberRector;
|
|
|
|
use Rector\Php74\Rector\MethodCall\ChangeReflectionTypeToStringToGetNameRector;
|
|
|
|
use Rector\Php74\Rector\Property\RestoreDefaultNullToNullableTypePropertyRector;
|
|
|
|
use Rector\Php74\Rector\Property\TypedPropertyRector;
|
|
|
|
use Rector\Php74\Rector\StaticCall\ExportToReflectionFunctionRector;
|
2020-08-18 17:57:30 +02:00
|
|
|
use Rector\Renaming\Rector\FuncCall\RenameFunctionRector;
|
2021-05-10 00:23:30 +00:00
|
|
|
use RectorPrefix20210510\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
2021-05-10 22:10:16 +00:00
|
|
|
return static function (ContainerConfigurator $containerConfigurator) : void {
|
2020-07-18 18:57:24 +02:00
|
|
|
$services = $containerConfigurator->services();
|
2021-05-10 22:10:16 +00:00
|
|
|
$services->set(TypedPropertyRector::class);
|
|
|
|
$services->set(RenameFunctionRector::class)->call('configure', [[RenameFunctionRector::OLD_FUNCTION_TO_NEW_FUNCTION => [
|
2021-05-09 20:15:43 +00:00
|
|
|
#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',
|
|
|
|
]]]);
|
2021-05-10 22:10:16 +00:00
|
|
|
$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);
|
2020-07-18 18:57:24 +02:00
|
|
|
};
|