diff --git a/CHANGELOG.md b/CHANGELOG.md index e2cf98f..431bc76 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ You can find and compare releases at the [GitHub release page](https://github.co ## Unreleased +## v2.3.0 + +- Remove `FinalizeClassesWithoutChildrenRector` + ## v2.2.0 ### Added diff --git a/config.php b/config.php index ba65142..21327eb 100644 --- a/config.php +++ b/config.php @@ -4,25 +4,11 @@ use Rector\Config\RectorConfig; use Rector\Php81\Rector\Array_\FirstClassCallableRector; -use Rector\Privatization\Rector\Class_\FinalizeClassesWithoutChildrenRector; use Rector\Transform\Rector\FuncCall\FuncCallToNewRector; /** Configure rector with PHP rules. */ function config(RectorConfig $rectorConfig): void { - /** - * Sometimes fails to recognize children, see https://github.com/rectorphp/rector/blob/main/docs/static_reflection_and_autoload.md#troubleshooting, - * and never recognizes when a class is mocked (which final classes do not allow for). - * - * To ignore this rule, use the following: - * - * $rectorConfig->skip([ - * FinalizeClassesWithoutChildrenRector::class => [ - * __DIR__ . '/app/MyMockedService::class, - * ], - * ]); - */ - $rectorConfig->rule(FinalizeClassesWithoutChildrenRector::class); $rectorConfig->rule(FirstClassCallableRector::class); }