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 14, 2021
1 parent af626ce commit be165de
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,16 @@ public function refactor(Node $node): ?Node
return $this->processRename($node, $valueVarName, $singularValueVarName);
}

private function isNotThisTypePropertyFetch(PropertyFetch|StaticPropertyFetch|Variable $expr, bool $isPropertyFetch): bool
private function isNotThisTypePropertyFetch(
PropertyFetch|StaticPropertyFetch|Variable $expr,
bool $isPropertyFetch
): bool
{
if (! $isPropertyFetch) {
return false;
}

/** @var PropertyFetch|StaticPropertyFetch $expr */
/** @var PropertyFetch|StaticPropertyFetch $expr */
$variableType = $expr instanceof PropertyFetch
? $this->nodeTypeResolver->getType($expr->var)
: $this->nodeTypeResolver->getType($expr->class);
Expand Down

0 comments on commit be165de

Please sign in to comment.