Skip to content

Commit 46767bf

Browse files
committed
ensure FullyQualified check
1 parent 97394aa commit 46767bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules/DowngradePhp84/Rector/FuncCall/DowngradeRoundingModeEnumRector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ public function refactor(Node $node): ?Node
7171

7272
$modeArg = $args[2]->value;
7373
$hasChanged = false;
74-
if ($modeArg instanceof ClassConstFetch && ($modeArg->class instanceof Name && $modeArg->class->name === 'RoundingMode')) {
75-
if (! ($modeArg->name instanceof Identifier)) {
74+
if ($modeArg instanceof ClassConstFetch && $modeArg->class instanceof FullyQualified && $this->isName($modeArg->class, 'RoundingMode')) {
75+
if (! $modeArg->name instanceof Identifier) {
7676
return null;
7777
}
7878

0 commit comments

Comments
 (0)