public function walkClassConstant(O\ClassConstantExpression $expression)
{
$classExpression = $expression->getClass();
if ($classExpression instanceof O\ValueExpression && strtolower($expression->getName()) === 'class') {
$classConstantValue = $this->resolveMagicScopeClassConstant($classExpression->getValue());
if ($classConstantValue === null) {
return $expression;
}
return O\Expression::value($classConstantValue);
}
return parent::walkClassConstant($this->resolveMagicScopeExpression($expression));
}