Skip to content

Commit 27a2292

Browse files
committed
[ci-review] Rector Rectify
1 parent bb7a659 commit 27a2292

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/BetterPhpDocParser/Comment/CommentsMerger.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
use Rector\NodeTypeResolver\Node\AttributeKey;
1212
use Rector\PhpParser\Comparing\NodeComparator;
1313

14-
final class CommentsMerger
14+
final readonly class CommentsMerger
1515
{
1616
public function __construct(
17-
private readonly NodeComparator $nodeComparator,
17+
private NodeComparator $nodeComparator,
1818
) {
1919
}
2020

src/NodeTypeResolver/PHPStan/Scope/NodeVisitor/PhpVersionConditionNodeVisitor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function enterNode(Node $node): ?Node
2727
if (($node instanceof Ternary || $node instanceof If_) && $this->hasVersionCompareCond($node)) {
2828
if ($node instanceof Ternary) {
2929
$nodes = [$node->else];
30-
if ($node->if instanceof \PhpParser\Node) {
30+
if ($node->if instanceof Node) {
3131
$nodes[] = $node->if;
3232
}
3333
} else {

0 commit comments

Comments
 (0)