Skip to content

Commit 1e75414

Browse files
authored
Remove PostRectorInterface from array<> @return docblock on RectorClassesSorter (#7370)
1 parent 24d7be4 commit 1e75414

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

src/Testing/PHPUnit/ValueObject/RectorTestResult.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace Rector\Testing\PHPUnit\ValueObject;
66

77
use Rector\Contract\Rector\RectorInterface;
8-
use Rector\PostRector\Contract\Rector\PostRectorInterface;
98
use Rector\Util\RectorClassesSorter;
109
use Rector\ValueObject\ProcessResult;
1110

@@ -26,7 +25,7 @@ public function getChangedContents(): string
2625
}
2726

2827
/**
29-
* @return array<class-string<RectorInterface|PostRectorInterface>>
28+
* @return array<class-string<RectorInterface>>
3029
*/
3130
public function getAppliedRectorClasses(): array
3231
{

src/Util/RectorClassesSorter.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,11 @@
77
use Rector\Contract\Rector\RectorInterface;
88
use Rector\PostRector\Contract\Rector\PostRectorInterface;
99

10-
/**
11-
* This class ensure the PostRectorInterface class names listed after main RectorInterface class names
12-
*/
1310
final class RectorClassesSorter
1411
{
1512
/**
1613
* @param array<class-string<RectorInterface|PostRectorInterface>> $rectorClasses
17-
* @return array<class-string<RectorInterface|PostRectorInterface>>
14+
* @return array<class-string<RectorInterface>>
1815
*/
1916
public static function sortAndFilterOutPostRectors(array $rectorClasses): array
2017
{

src/ValueObject/Reporting/FileDiff.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use Rector\ChangesReporting\ValueObject\RectorWithLineChange;
99
use Rector\Contract\Rector\RectorInterface;
1010
use Rector\Parallel\ValueObject\BridgeItem;
11-
use Rector\PostRector\Contract\Rector\PostRectorInterface;
1211
use Rector\Util\RectorClassesSorter;
1312
use Symplify\EasyParallel\Contract\SerializableInterface;
1413
use Webmozart\Assert\Assert;
@@ -83,7 +82,7 @@ public function getRectorShortClasses(): array
8382
}
8483

8584
/**
86-
* @return array<class-string<RectorInterface|PostRectorInterface>>
85+
* @return array<class-string<RectorInterface>>
8786
*/
8887
public function getRectorClasses(): array
8988
{

0 commit comments

Comments
 (0)