2020-07-18 16:57:24 +00:00
|
|
|
<?php
|
|
|
|
|
2021-05-09 20:15:43 +00:00
|
|
|
declare (strict_types=1);
|
2023-06-01 08:56:46 +00:00
|
|
|
namespace RectorPrefix202306;
|
2020-07-18 16:57:24 +00:00
|
|
|
|
2022-06-06 17:12:56 +00:00
|
|
|
use Rector\Config\RectorConfig;
|
|
|
|
use Rector\Php74\Rector\ArrayDimFetch\CurlyToSquareBracketArrayStringRector;
|
|
|
|
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\MbStrrposEncodingArgumentPositionRector;
|
2022-08-24 20:17:59 +00:00
|
|
|
use Rector\Php74\Rector\FuncCall\MoneyFormatToNumberFormatRector;
|
2022-06-06 17:12:56 +00:00
|
|
|
use Rector\Php74\Rector\LNumber\AddLiteralSeparatorToNumberRector;
|
|
|
|
use Rector\Php74\Rector\Property\RestoreDefaultNullToNullableTypePropertyRector;
|
|
|
|
use Rector\Php74\Rector\StaticCall\ExportToReflectionFunctionRector;
|
2022-08-31 07:08:44 +00:00
|
|
|
use Rector\Php74\Rector\Ternary\ParenthesizeNestedTernaryRector;
|
2022-06-06 17:12:56 +00:00
|
|
|
use Rector\Renaming\Rector\FuncCall\RenameFunctionRector;
|
2022-11-29 16:07:36 +00:00
|
|
|
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromAssignsRector;
|
2022-06-07 08:22:29 +00:00
|
|
|
return static function (RectorConfig $rectorConfig) : void {
|
|
|
|
$rectorConfig->ruleWithConfiguration(RenameFunctionRector::class, [
|
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-11-30 13:55:08 +00:00
|
|
|
]);
|
2023-05-26 13:24:53 +00:00
|
|
|
$rectorConfig->rules([ArrayKeyExistsOnPropertyRector::class, FilterVarToAddSlashesRector::class, ExportToReflectionFunctionRector::class, MbStrrposEncodingArgumentPositionRector::class, RealToFloatTypeCastRector::class, NullCoalescingOperatorRector::class, ClosureToArrowFunctionRector::class, ArraySpreadInsteadOfArrayMergeRector::class, AddLiteralSeparatorToNumberRector::class, RestoreDefaultNullToNullableTypePropertyRector::class, CurlyToSquareBracketArrayStringRector::class, MoneyFormatToNumberFormatRector::class, ParenthesizeNestedTernaryRector::class, TypedPropertyFromAssignsRector::class]);
|
2020-07-18 16:57:24 +00:00
|
|
|
};
|