diff --git a/src/ValueResolver/NodeExpressionResolver.php b/src/ValueResolver/NodeExpressionResolver.php index cf7d0f46..295dc549 100644 --- a/src/ValueResolver/NodeExpressionResolver.php +++ b/src/ValueResolver/NodeExpressionResolver.php @@ -263,6 +263,10 @@ protected function resolveExprConstFetch(Expr\ConstFetch $node) $this->constantName = $constantName; if ($this->isParameter) { + if (isset($namespaceName)) { + return $namespaceName . '\\' . $this->constantName; + } + return $this->constantName; } }