diff --git a/src/Builder/ClassModifier/ClassConstant/ClassConstantModifier.php b/src/Builder/ClassModifier/ClassConstant/ClassConstantModifier.php index 1ed7f73e..03a09efb 100644 --- a/src/Builder/ClassModifier/ClassConstant/ClassConstantModifier.php +++ b/src/Builder/ClassModifier/ClassConstant/ClassConstantModifier.php @@ -73,6 +73,14 @@ public function setConstant( if ($isLiteral) { $value = $this->parseSingleValue((string)$value); + } else if (is_array($value)) { + foreach ($value as $idx => $val) { + if (!is_string($val) || strpos($val, '::') === false) { + continue; + } + + $value[$idx] = $this->parseSingleValue($val); + } } $visitors = [