Skip to content

Commit 81e1a63

Browse files
committed
[DowngradePhp81] Allow downgrade ReflectionMethod on DowngradeSetAccessibleReflectionPropertyRector
1 parent 3ea65ea commit 81e1a63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/DowngradePhp81/Rector/StmtsAwareInterface/DowngradeSetAccessibleReflectionPropertyRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function refactor(Node $node): ?Node
9494
}
9595

9696
$new = $assign->expr;
97-
if (! $this->isName($new->class, 'ReflectionProperty')) {
97+
if (! $this->isNames($new->class, ['ReflectionProperty', 'ReflectionMethod'])) {
9898
continue;
9999
}
100100

0 commit comments

Comments
 (0)