/var/www/vhosts/ihelp.ro/httpdocs/vendor/twig/twig/src/Node/Expression/Test
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/twig/twig/src/Node/Expression/Test/ConstantTest.php (1179B)
*/
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('))')
;
}
}