Skip to content

Commit 4056166

Browse files
authored
Remove unnecessary check ReflectionClass on DowngradeReflectionGetAttributesRector (#205)
1 parent da60f65 commit 4056166

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

rules/DowngradePhp80/Rector/MethodCall/DowngradeReflectionGetAttributesRector.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,7 @@ public function refactor(Node $node): Ternary|null|int
8080
return null;
8181
}
8282

83-
if (
84-
! $this->isObjectType($node->var, new ObjectType('Reflector'))
85-
&& ! $this->isObjectType($node->var, new ObjectType('ReflectionClass'))
86-
) {
83+
if (! $this->isObjectType($node->var, new ObjectType('Reflector'))) {
8784
return null;
8885
}
8986

0 commit comments

Comments
 (0)