Skip to content

Commit

Permalink
Remove ChangeGlobalVariablesToPropertiesRector as the scope might cha…
Browse files Browse the repository at this point in the history
…nge after the variable is defined, better handle with PHPStan (#4086)
  • Loading branch information
TomasVotruba committed Jun 5, 2023
1 parent 2dccbb6 commit be31c8f
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 333 deletions.
2 changes: 0 additions & 2 deletions config/set/privatization.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
declare(strict_types=1);

use Rector\Config\RectorConfig;
use Rector\Privatization\Rector\Class_\ChangeGlobalVariablesToPropertiesRector;
use Rector\Privatization\Rector\Class_\FinalizeClassesWithoutChildrenRector;
use Rector\Privatization\Rector\ClassMethod\PrivatizeFinalClassMethodRector;
use Rector\Privatization\Rector\MethodCall\PrivatizeLocalGetterToPropertyRector;
Expand All @@ -12,7 +11,6 @@
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->rules([
FinalizeClassesWithoutChildrenRector::class,
ChangeGlobalVariablesToPropertiesRector::class,
PrivatizeLocalGetterToPropertyRector::class,
PrivatizeFinalClassPropertyRector::class,
PrivatizeFinalClassMethodRector::class,
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit be31c8f

Please sign in to comment.