From 1dcfe9ba3b8cf01dbe9d1bf1c0c377f33b167420 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Tue, 30 Sep 2025 00:49:36 +0700 Subject: [PATCH] Remove PostRectorInterface from array<> @return docblock on RectorClassesSorter --- src/Testing/PHPUnit/ValueObject/RectorTestResult.php | 3 +-- src/Util/RectorClassesSorter.php | 5 +---- src/ValueObject/Reporting/FileDiff.php | 3 +-- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/Testing/PHPUnit/ValueObject/RectorTestResult.php b/src/Testing/PHPUnit/ValueObject/RectorTestResult.php index 4806fed0fa9..3b234b3b359 100644 --- a/src/Testing/PHPUnit/ValueObject/RectorTestResult.php +++ b/src/Testing/PHPUnit/ValueObject/RectorTestResult.php @@ -5,7 +5,6 @@ namespace Rector\Testing\PHPUnit\ValueObject; use Rector\Contract\Rector\RectorInterface; -use Rector\PostRector\Contract\Rector\PostRectorInterface; use Rector\Util\RectorClassesSorter; use Rector\ValueObject\ProcessResult; @@ -26,7 +25,7 @@ public function getChangedContents(): string } /** - * @return array> + * @return array> */ public function getAppliedRectorClasses(): array { diff --git a/src/Util/RectorClassesSorter.php b/src/Util/RectorClassesSorter.php index 2c995360f8c..830ab6f2325 100644 --- a/src/Util/RectorClassesSorter.php +++ b/src/Util/RectorClassesSorter.php @@ -7,14 +7,11 @@ use Rector\Contract\Rector\RectorInterface; use Rector\PostRector\Contract\Rector\PostRectorInterface; -/** - * This class ensure the PostRectorInterface class names listed after main RectorInterface class names - */ final class RectorClassesSorter { /** * @param array> $rectorClasses - * @return array> + * @return array> */ public static function sortAndFilterOutPostRectors(array $rectorClasses): array { diff --git a/src/ValueObject/Reporting/FileDiff.php b/src/ValueObject/Reporting/FileDiff.php index 9e7dd439a57..850235c8969 100644 --- a/src/ValueObject/Reporting/FileDiff.php +++ b/src/ValueObject/Reporting/FileDiff.php @@ -8,7 +8,6 @@ use Rector\ChangesReporting\ValueObject\RectorWithLineChange; use Rector\Contract\Rector\RectorInterface; use Rector\Parallel\ValueObject\BridgeItem; -use Rector\PostRector\Contract\Rector\PostRectorInterface; use Rector\Util\RectorClassesSorter; use Symplify\EasyParallel\Contract\SerializableInterface; use Webmozart\Assert\Assert; @@ -83,7 +82,7 @@ public function getRectorShortClasses(): array } /** - * @return array> + * @return array> */ public function getRectorClasses(): array {