File tree Expand file tree Collapse file tree 4 files changed +10
-7
lines changed
rules/DowngradePhp81/Rector/Array_ Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 88 },
99 "require-dev" : {
1010 "phpstan/extension-installer" : " ^1.3" ,
11- "phpstan/phpstan" : " ^2.1.8 " ,
11+ "phpstan/phpstan" : " ^2.1.30 " ,
1212 "phpstan/phpstan-webmozart-assert" : " ^2.0" ,
13- "phpunit/phpunit" : " ^11.4 " ,
13+ "phpunit/phpunit" : " ^11.5 " ,
1414 "rector/rector-src" : " dev-main" ,
1515 "symplify/easy-coding-standard" : " ^12.3" ,
1616 "symplify/rule-doc-generator" : " ^12.2" ,
17- "symplify/vendor-patches" : " ^11.3 " ,
17+ "symplify/vendor-patches" : " ^11.5 " ,
1818 "tomasvotruba/class-leak" : " ^1.0" ,
1919 "tracy/tracy" : " ^2.10"
2020 },
Original file line number Diff line number Diff line change 44
55use Rector \Config \RectorConfig ;
66use Rector \ValueObject \PhpVersion ;
7- use Rector \DowngradePhp74 \Rector \Array_ \DowngradeArraySpreadRector ;
87use Rector \DowngradePhp74 \Rector \ArrowFunction \ArrowFunctionToAnonymousFunctionRector ;
98use Rector \DowngradePhp74 \Rector \ClassMethod \DowngradeContravariantArgumentTypeRector ;
109use Rector \DowngradePhp74 \Rector \ClassMethod \DowngradeCovariantReturnTypeRector ;
2928 DowngradeNullCoalescingOperatorRector::class,
3029 DowngradeNumericLiteralSeparatorRector::class,
3130 DowngradeStripTagsCallWithArrayRector::class,
32- DowngradeArraySpreadRector::class,
31+ // DowngradeArraySpreadRector::class,
32+ // already handled in PHP 8.1 set
3333 DowngradeArrayMergeCallWithoutArgumentsRector::class,
3434 DowngradeFreadFwriteFalsyToNegationRector::class,
3535 DowngradePreviouslyImplementedInterfaceRector::class,
Original file line number Diff line number Diff line change 22
33declare (strict_types=1 );
44
5+ use Rector \DowngradePhp74 \Rector \Array_ \DowngradeArraySpreadRector ;
56use Rector \DowngradePhp81 \Rector \FuncCall \DowngradeHashAlgorithmXxHashRector ;
67use Rector \DowngradePhp81 \Rector \LNumber \DowngradeOctalNumberRector ;
78use Rector \DowngradePhp81 \Rector \MethodCall \DowngradeIsEnumRector ;
89use Rector \Config \RectorConfig ;
910use Rector \ValueObject \PhpVersion ;
10- use Rector \DowngradePhp81 \Rector \Array_ \DowngradeArraySpreadStringKeyRector ;
1111use Rector \DowngradePhp81 \Rector \ClassConst \DowngradeFinalizePublicClassConstantRector ;
1212use Rector \DowngradePhp81 \Rector \FuncCall \DowngradeArrayIsListRector ;
1313use Rector \DowngradePhp81 \Rector \FuncCall \DowngradeFirstClassCallableSyntaxRector ;
3232 DowngradeNewInInitializerRector::class,
3333 DowngradePhp81ResourceReturnToObjectRector::class,
3434 DowngradeReadonlyPropertyRector::class,
35- DowngradeArraySpreadStringKeyRector::class,
35+ DowngradeArraySpreadRector::class,
36+ // DowngradeArraySpreadStringKeyRector::class,
3637 DowngradeArrayIsListRector::class,
3738 DowngradeSetAccessibleReflectionPropertyRector::class,
3839 DowngradeIsEnumRector::class,
Original file line number Diff line number Diff line change 2121/**
2222 * @changelog https://wiki.php.net/rfc/array_unpacking_string_keys
2323 *
24+ * @api testing if useful
25+ *
2426 * @see \Rector\Tests\DowngradePhp81\Rector\Array_\DowngradeArraySpreadStringKeyRector\DowngradeArraySpreadStringKeyRectorTest
2527 */
2628final class DowngradeArraySpreadStringKeyRector extends AbstractRector
You can’t perform that action at this time.
0 commit comments