|
7 | 7 | use PhpParser\Node\Expr\Cast\Int_; |
8 | 8 | use PhpParser\Node\Expr\Cast\String_; |
9 | 9 | use Rector\Arguments\Rector\ClassMethod\ArgumentAdderRector; |
10 | | -use Rector\Arguments\Rector\FuncCall\FunctionArgumentDefaultValueReplacerRector; |
11 | 10 | use Rector\Arguments\ValueObject\ArgumentAdder; |
12 | | -use Rector\Arguments\ValueObject\ReplaceFuncCallArgumentDefaultValue; |
13 | 11 | use Rector\CodeQuality\Rector\ClassMethod\OptionalParametersAfterRequiredRector; |
14 | 12 | use Rector\CodingStyle\Rector\ArrowFunction\ArrowFunctionDelegatingCallToFirstClassCallableRector; |
15 | 13 | use Rector\CodingStyle\Rector\Closure\ClosureDelegatingCallToFirstClassCallableRector; |
|
95 | 93 | use Rector\Php80\Rector\ClassMethod\FinalPrivateToPrivateVisibilityRector; |
96 | 94 | use Rector\Php80\Rector\ClassMethod\SetStateToStaticRector; |
97 | 95 | use Rector\Php80\Rector\FuncCall\ClassOnObjectRector; |
| 96 | +use Rector\Php80\Rector\FuncCall\GetHeadersArgumentFormatRector; |
| 97 | +use Rector\Php80\Rector\FuncCall\VersionCompareFuncCallArgumentRector; |
98 | 98 | use Rector\Php80\Rector\Identical\StrEndsWithRector; |
99 | 99 | use Rector\Php80\Rector\Identical\StrStartsWithRector; |
100 | 100 | use Rector\Php80\Rector\NotIdentical\StrContainsRector; |
|
270 | 270 | ClassOnThisVariableObjectRector::class, |
271 | 271 | ConsistentImplodeRector::class, |
272 | 272 | OptionalParametersAfterRequiredRector::class, |
| 273 | + VersionCompareFuncCallArgumentRector::class, |
| 274 | + GetHeadersArgumentFormatRector::class, |
273 | 275 |
|
274 | 276 | // PHP 8.1 |
275 | 277 | ReturnNeverTypeRector::class, |
|
468 | 470 | 'pg_setclientencoding' => 'pg_set_client_encoding', |
469 | 471 | ], PhpVersion::PHP_80); |
470 | 472 |
|
471 | | - $rectorConfig->ruleWithConfigurationPhpVersionBound(FunctionArgumentDefaultValueReplacerRector::class, [ |
472 | | - new ReplaceFuncCallArgumentDefaultValue('version_compare', 2, 'gte', 'ge'), |
473 | | - new ReplaceFuncCallArgumentDefaultValue('version_compare', 2, 'lte', 'le'), |
474 | | - new ReplaceFuncCallArgumentDefaultValue('version_compare', 2, '', '!='), |
475 | | - new ReplaceFuncCallArgumentDefaultValue('version_compare', 2, '!', '!='), |
476 | | - new ReplaceFuncCallArgumentDefaultValue('version_compare', 2, 'g', 'gt'), |
477 | | - new ReplaceFuncCallArgumentDefaultValue('version_compare', 2, 'l', 'lt'), |
478 | | - new ReplaceFuncCallArgumentDefaultValue('version_compare', 2, 'n', 'ne'), |
479 | | - new ReplaceFuncCallArgumentDefaultValue('get_headers', 1, 0, false), |
480 | | - new ReplaceFuncCallArgumentDefaultValue('get_headers', 1, 1, true), |
481 | | - ], PhpVersion::PHP_80); |
482 | | - |
483 | 473 | // PHP 8.5 |
484 | 474 | $rectorConfig->ruleWithConfigurationPhpVersionBound(RemoveFuncCallArgRector::class, [ |
485 | 475 | // https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_key_length_parameter_of_openssl_pkey_derive |
|
0 commit comments