From c0079e3824d81ca2bd1a4b430c06acec4a5ef731 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Mon, 5 Feb 2024 16:57:31 +0700 Subject: [PATCH] Rollback RectorConfig::configure()->withRules() on privatization config set to old style config (#5560) --- config/set/privatization.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/set/privatization.php b/config/set/privatization.php index f259deeaa91..f0c771e4894 100644 --- a/config/set/privatization.php +++ b/config/set/privatization.php @@ -7,9 +7,10 @@ use Rector\Privatization\Rector\MethodCall\PrivatizeLocalGetterToPropertyRector; use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector; -return RectorConfig::configure() - ->withRules([ +return static function (RectorConfig $rectorConfig): void { + $rectorConfig->rules([ PrivatizeLocalGetterToPropertyRector::class, PrivatizeFinalClassPropertyRector::class, PrivatizeFinalClassMethodRector::class, ]); +};