403Webshell
Server IP : 37.9.174.138  /  Your IP : 216.73.216.117
Web Server : Apache
System : Linux vps6.backend.sk 6.12.100+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.100-1 (2026-07-30) x86_64
User : ftpuser ( 1001)
PHP Version : 8.4.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/php/Twig/Node/Expression/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/php/Twig/Node/Expression/SupportDefinedTestDeprecationTrait.php
<?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;

/**
 * @internal
 *
 * To be removed in 4.0
 *
 * @author Fabien Potencier <fabien@symfony.com>
 */
trait SupportDefinedTestDeprecationTrait
{
    public function getAttribute($name, $default = null)
    {
        if ('is_defined_test' === $name) {
            trigger_deprecation('twig/twig', '3.21', 'The "is_defined_test" attribute is deprecated, call "isDefinedTestEnabled()" instead.');

            return $this->isDefinedTestEnabled();
        }

        return parent::getAttribute($name, $default);
    }

    public function setAttribute(string $name, $value): void
    {
        if ('is_defined_test' === $name) {
            trigger_deprecation('twig/twig', '3.21', 'The "is_defined_test" attribute is deprecated, call "enableDefinedTest()" instead.');

            $this->definedTest = (bool) $value;
        } else {
            parent::setAttribute($name, $value);
        }
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit