Skip to content

Commit 7e3aac0

Browse files
committed
[ci-review] Rector Rectify
1 parent 51d0657 commit 7e3aac0

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

rules/TypeDeclarationDocblocks/Rector/ClassMethod/DocblockReturnArrayFromDirectArrayInstanceRector.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use PHPStan\PhpDocParser\Ast\PhpDoc\ReturnTagValueNode;
1313
use PHPStan\Type\Constant\ConstantArrayType;
1414
use Rector\BetterPhpDocParser\PhpDocInfo\PhpDocInfoFactory;
15-
use Rector\BetterPhpDocParser\PhpDocManipulator\PhpDocTypeChanger;
1615
use Rector\Comments\NodeDocBlock\DocBlockUpdater;
1716
use Rector\Rector\AbstractRector;
1817
use Rector\TypeDeclarationDocblocks\NodeFinder\ReturnNodeFinder;
@@ -31,8 +30,7 @@ public function __construct(
3130
private readonly DocBlockUpdater $docBlockUpdater,
3231
private readonly ConstantArrayTypeGeneralizer $constantArrayTypeGeneralizer,
3332
private readonly ReturnNodeFinder $returnNodeFinder,
34-
private readonly UsefulArrayTagNodeAnalyzer $usefulArrayTagNodeAnalyzer,
35-
private readonly PhpDocTypeChanger $phpDocTypeChanger
33+
private readonly UsefulArrayTagNodeAnalyzer $usefulArrayTagNodeAnalyzer
3634
) {
3735
}
3836

rules/TypeDeclarationDocblocks/TagNodeAnalyzer/UsefulArrayTagNodeAnalyzer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ final class UsefulArrayTagNodeAnalyzer
1111
{
1212
public function isUsefulArrayTag(?ReturnTagValueNode $returnTagValueNode): bool
1313
{
14-
if ($returnTagValueNode === null) {
14+
if (!$returnTagValueNode instanceof ReturnTagValueNode) {
1515
return false;
1616
}
1717

0 commit comments

Comments
 (0)