Skip to content

Commit 173fd86

Browse files
committed
cs fix
1 parent 489ce47 commit 173fd86

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

rules/DowngradePhp80/Rector/NullsafeMethodCall/DowngradeNullsafeToTernaryOperatorRector.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public function refactor(Node $node): ?Ternary
7777
), $node->name, $node->args);
7878
return new Ternary($assign, $methodCallOrPropertyFetch, $this->nodeFactory->createNull());
7979
}
80+
8081
$methodCallOrPropertyFetch = new MethodCall(new PropertyFetch(
8182
$nullsafeVariable,
8283
$node->var->name
@@ -98,12 +99,6 @@ public function refactor(Node $node): ?Ternary
9899
$node->var->name
99100
), $node->name);
100101
return new Ternary($assign, $methodCallOrPropertyFetch, $this->nodeFactory->createNull());
101-
102-
return new Ternary(
103-
$assign,
104-
$methodCallOrPropertyFetch,
105-
$this->nodeFactory->createNull()
106-
);
107102
}
108103

109104
return null;

0 commit comments

Comments
 (0)