Skip to content

Commit

Permalink
Remove unnecessary check ReflectionClass on DowngradeReflectionGetAtt…
Browse files Browse the repository at this point in the history
…ributesRector (#205)
  • Loading branch information
samsonasik authored Nov 5, 2023
1 parent da60f65 commit 4056166
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@ public function refactor(Node $node): Ternary|null|int
return null;
}

if (
! $this->isObjectType($node->var, new ObjectType('Reflector'))
&& ! $this->isObjectType($node->var, new ObjectType('ReflectionClass'))
) {
if (! $this->isObjectType($node->var, new ObjectType('Reflector'))) {
return null;
}

Expand Down

0 comments on commit 4056166

Please sign in to comment.