Skip to content

Commit

Permalink
namespaced const fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Jan 18, 2024
1 parent 3f62a99 commit cbd5720
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ValueResolver/NodeExpressionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit cbd5720

Please sign in to comment.