*/ class ConstantTest extends TestExpression { public function compile(Compiler $compiler): void { $compiler ->raw('(') ->subcompile($this->getNode('node')) ->raw(' === constant(') ; if ($this->getNode('arguments')->hasNode('1')) { $compiler ->raw('get_class(') ->subcompile($this->getNode('arguments')->getNode('1')) ->raw(')."::".') ; } $compiler ->subcompile($this->getNode('arguments')->getNode('0')) ->raw('))') ; } }