From 264ea0beb7b03a6cd404f9fe7eb63f212b7a2ca2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zoli=20Szab=C3=B3?= Date: Fri, 30 Oct 2026 12:16:48 +0200 Subject: [PATCH] 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. --- config/set/php74.php | 2 ++ config/set/php80.php | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/set/php74.php b/config/set/php74.php index f8683feba25..2c21f668026 100644 --- a/config/set/php74.php +++ b/config/set/php74.php @@ -3,6 +3,7 @@ declare(strict_types=1); use PhpParser\Node\Expr\Cast\Double; +use Rector\CodingStyle\Rector\FuncCall\ConsistentImplodeRector; use Rector\Config\RectorConfig; use Rector\Php74\Rector\ArrayDimFetch\CurlyToSquareBracketArrayStringRector; use Rector\Php74\Rector\Assign\NullCoalescingOperatorRector; @@ -43,6 +44,7 @@ ParenthesizeNestedTernaryRector::class, RestoreIncludePathToIniRestoreRector::class, HebrevcToNl2brHebrevRector::class, + ConsistentImplodeRector::class, ]); $rectorConfig->ruleWithConfiguration( diff --git a/config/set/php80.php b/config/set/php80.php index 74f9cff736f..c7c12f22b4d 100644 --- a/config/set/php80.php +++ b/config/set/php80.php @@ -5,7 +5,6 @@ use Rector\Arguments\Rector\ClassMethod\ArgumentAdderRector; use Rector\Arguments\ValueObject\ArgumentAdder; use Rector\CodeQuality\Rector\ClassMethod\OptionalParametersAfterRequiredRector; -use Rector\CodingStyle\Rector\FuncCall\ConsistentImplodeRector; use Rector\Config\RectorConfig; use Rector\DeadCode\Rector\StaticCall\RemoveParentCallWithoutParentRector; use Rector\Php80\Rector\Catch_\RemoveUnusedVariableInCatchRector; @@ -45,7 +44,6 @@ FinalPrivateToPrivateVisibilityRector::class, AddParamBasedOnParentClassMethodRector::class, ClassOnThisVariableObjectRector::class, - ConsistentImplodeRector::class, OptionalParametersAfterRequiredRector::class, VersionCompareFuncCallArgumentRector::class, GetHeadersArgumentFormatRector::class,