Skip to content

Commit cf0a8a9

Browse files
committed
[ci-review] Rector Rectify
1 parent 89ebb98 commit cf0a8a9

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

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

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,12 @@ public function __construct(
2424

2525
public function enterNode(Node $node): ?Node
2626
{
27-
if ($node instanceof Ternary || $node instanceof If_) {
28-
if ($this->hasVersionCompareCond($node)) {
29-
SimpleNodeTraverser::decorateWithAttributeValue(
30-
[$node->if, $node->else],
31-
AttributeKey::PHP_VERSION_CONDITIONED,
32-
true
33-
);
34-
}
27+
if (($node instanceof Ternary || $node instanceof If_) && $this->hasVersionCompareCond($node)) {
28+
SimpleNodeTraverser::decorateWithAttributeValue(
29+
[$node->if, $node->else],
30+
AttributeKey::PHP_VERSION_CONDITIONED,
31+
true
32+
);
3533
}
3634

3735
return null;

0 commit comments

Comments
 (0)