Skip to content

Commit 48ac78f

Browse files
committed
ci(rector): Enable SortAssociativeArrayByKeyRector
- Add SortAssociativeArrayByKeyRector to the rules for code transformation - Update configuration to include paths for skipping in the rector process - Ensure that associative arrays are sorted by keys using the new rule
1 parent 8eca86d commit 48ac78f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

rector.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
])
9898
->withRules([
9999
ArraySpreadInsteadOfArrayMergeRector::class,
100-
// SortAssociativeArrayByKeyRector::class,
100+
SortAssociativeArrayByKeyRector::class,
101101
StaticArrowFunctionRector::class,
102102
StaticClosureRector::class,
103103
ToInternalExceptionRector::class,
@@ -248,4 +248,9 @@ static function (array $carry, string $func): array {
248248
__DIR__.'/tests',
249249
],
250250
StaticClosureRector::class => $staticClosureSkipPaths,
251+
SortAssociativeArrayByKeyRector::class => [
252+
__DIR__.'/config',
253+
__DIR__.'/src',
254+
__DIR__.'/tests',
255+
],
251256
]);

0 commit comments

Comments
 (0)