Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/Testing/PHPUnit/ValueObject/RectorTestResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -26,7 +25,7 @@ public function getChangedContents(): string
}

/**
* @return array<class-string<RectorInterface|PostRectorInterface>>
* @return array<class-string<RectorInterface>>
*/
public function getAppliedRectorClasses(): array
{
Expand Down
5 changes: 1 addition & 4 deletions src/Util/RectorClassesSorter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<class-string<RectorInterface|PostRectorInterface>> $rectorClasses
* @return array<class-string<RectorInterface|PostRectorInterface>>
* @return array<class-string<RectorInterface>>
*/
public static function sortAndFilterOutPostRectors(array $rectorClasses): array
{
Expand Down
3 changes: 1 addition & 2 deletions src/ValueObject/Reporting/FileDiff.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -83,7 +82,7 @@ public function getRectorShortClasses(): array
}

/**
* @return array<class-string<RectorInterface|PostRectorInterface>>
* @return array<class-string<RectorInterface>>
*/
public function getRectorClasses(): array
{
Expand Down
Loading