Skip to content

Commit

Permalink
Rollback RectorConfig::configure()->withRules() on privatization conf…
Browse files Browse the repository at this point in the history
…ig set to old style config (#5560)
  • Loading branch information
samsonasik committed Feb 5, 2024
1 parent 487f162 commit c0079e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/set/privatization.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]);
};

0 comments on commit c0079e3

Please sign in to comment.