File "ConstantTest.php"

Full Path: /home/warrior1/public_html/wp-content/plugins/mailpoet/vendor-prefixed/twig/twig/src/Node/Expression/Test/ConstantTest.php
File size: 591 bytes
MIME-type: text/x-php
Charset: utf-8

<?php
namespace MailPoetVendor\Twig\Node\Expression\Test;
if (!defined('ABSPATH')) exit;
use MailPoetVendor\Twig\Compiler;
use MailPoetVendor\Twig\Node\Expression\TestExpression;
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('))');
 }
}