Skip to content

Commit c1d02dd

Browse files
committed
ensure verify normalized value
1 parent 35f3bce commit c1d02dd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rules/Arguments/ArgumentDefaultValueReplacer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ private function processArgs(
161161
if ($particularArg->value instanceof ClassConstFetch
162162
&& $particularArg->value->class instanceof Name
163163
&& $particularArg->value->class->isSpecialClassName()
164+
&& $normalizedValueAfter instanceof ClassConstFetch
164165
&& is_string($replaceArgumentDefaultValue->getValueAfter())
165166
&& str_contains($replaceArgumentDefaultValue->getValueAfter(), '::')) {
166167
[$targetClass, $targetConstant] = explode('::', $replaceArgumentDefaultValue->getValueAfter());
@@ -172,7 +173,7 @@ private function processArgs(
172173
}
173174
}
174175

175-
$particularArg->value = $this->normalizeValue($replaceArgumentDefaultValue->getValueAfter());
176+
$particularArg->value = $normalizedValueAfter;
176177
return $expr;
177178
}
178179

0 commit comments

Comments
 (0)