Skip to content

Commit 264ea0b

Browse files
committed
Move ConsistentImplodeRector from php80 to php74
Passing the separator after the array (i.e. using the legacy signature) has been deprecated since PHP 7.4.
1 parent 01a316d commit 264ea0b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎config/set/php74.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
declare(strict_types=1);
44

55
use PhpParser\Node\Expr\Cast\Double;
6+
use Rector\CodingStyle\Rector\FuncCall\ConsistentImplodeRector;
67
use Rector\Config\RectorConfig;
78
use Rector\Php74\Rector\ArrayDimFetch\CurlyToSquareBracketArrayStringRector;
89
use Rector\Php74\Rector\Assign\NullCoalescingOperatorRector;
@@ -43,6 +44,7 @@
4344
ParenthesizeNestedTernaryRector::class,
4445
RestoreIncludePathToIniRestoreRector::class,
4546
HebrevcToNl2brHebrevRector::class,
47+
ConsistentImplodeRector::class,
4648
]);
4749

4850
$rectorConfig->ruleWithConfiguration(

‎config/set/php80.php‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Rector\Arguments\Rector\ClassMethod\ArgumentAdderRector;
66
use Rector\Arguments\ValueObject\ArgumentAdder;
77
use Rector\CodeQuality\Rector\ClassMethod\OptionalParametersAfterRequiredRector;
8-
use Rector\CodingStyle\Rector\FuncCall\ConsistentImplodeRector;
98
use Rector\Config\RectorConfig;
109
use Rector\DeadCode\Rector\StaticCall\RemoveParentCallWithoutParentRector;
1110
use Rector\Php80\Rector\Catch_\RemoveUnusedVariableInCatchRector;
@@ -45,7 +44,6 @@
4544
FinalPrivateToPrivateVisibilityRector::class,
4645
AddParamBasedOnParentClassMethodRector::class,
4746
ClassOnThisVariableObjectRector::class,
48-
ConsistentImplodeRector::class,
4947
OptionalParametersAfterRequiredRector::class,
5048
VersionCompareFuncCallArgumentRector::class,
5149
GetHeadersArgumentFormatRector::class,

0 commit comments

Comments
 (0)