Skip to content

Commit

Permalink
[ci-review] Rector Rectify
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 1, 2021
1 parent 72db2d2 commit aa1e62f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ private function isWrappedInCurlyBrackets(BetterTokenIterator $betterTokenProvid
return $betterTokenProvider->isTokenTypeOnPosition(Lexer::TOKEN_CLOSE_PARENTHESES, $startAndEnd->getEnd());
}

private function resolveStardAndEnd(UnionTypeNode $node): ?StartAndEnd
private function resolveStardAndEnd(UnionTypeNode $unionTypeNode): ?StartAndEnd
{
$starAndEnd = $node->getAttribute(PhpDocAttributeKey::START_AND_END);
$starAndEnd = $unionTypeNode->getAttribute(PhpDocAttributeKey::START_AND_END);
if ($starAndEnd instanceof StartAndEnd) {
return $starAndEnd;
}

// unwrap with parent array type...
$parent = $node->getAttribute(PhpDocAttributeKey::PARENT);
$parent = $unionTypeNode->getAttribute(PhpDocAttributeKey::PARENT);
if (! $parent instanceof Node) {
return null;
}
Expand Down

0 comments on commit aa1e62f

Please sign in to comment.