* This file is part of Twig.
*
* (c) Fabien Potencier
* (c) Armin Ronacher
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Twig\Node;
use Twig\Compiler;
use Twig\Source;
/**
* Represents a node in the AST.
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class Node implements \Twig_NodeInterface
{
protected $nodes;
protected $attributes;
protected $lineno;
protected $tag;
private $name;
private $sourceContext;
/**
* @param array $nodes An array of named nodes
* @param array $attributes An array of attributes (should not be nodes)
* @param int $lineno The line number
* @param string $tag The tag name associated with the Node
*/
public function __construct(array $nodes = [], array $attributes = [], $lineno = 0, $tag = null)
{
foreach ($nodes as $name => $node) {
if (!$node instanceof \Twig_NodeInterface) {
@trigger_error(sprintf('Using "%s" for the value of node "%s" of "%s" is deprecated since version 1.25 and will be removed in 2.0.', \is_object($node) ? \get_class($node) : (null === $node ? 'null' : \gettype($node)), $name, static::class), \E_USER_DEPRECATED);
Arguments
"""
Error: During inheritance of Countable: Uncaught Whoops\Exception\ErrorException: Return type of Twig\Node\Node::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /www/doc/www.intereso.cz/www/_work/j4ventureii/libraries/gantry5/compat/vendor/twig/twig/src/Node/Node.php:213\n
Stack trace:\n
#0 /www/doc/www.intereso.cz/www/_work/j4ventureii/libraries/gantry5/src/classes/Gantry/Component/Whoops/SystemFacade.php(112): Whoops\Run->handleError(8192, 'Return type of ...', '/www/doc/www.in...', 213)\n
#1 /www/doc/www.intereso.cz/www/_work/j4ventureii/libraries/gantry5/compat/vendor/twig/twig/src/Node/Node.php(23): Gantry\Component\Whoops\SystemFacade->handleError(8192, 'Return type of ...', '/www/doc/www.in...', 213)\n
#2 /www/doc/www.intereso.cz/www/_work/j4ventureii/libraries/vendor/composer/ClassLoader.php(571): include('/www/doc/www.in...')\n
#3 /www/doc/www.intereso.cz/www/_work/j4ventureii/libraries/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile('/www/doc/www.in...')\n
#4 [internal function]: Composer\Autoload\ClassLoader->loadClass('Twig\\Node\\Node')\n
#5 /www/doc/www.intereso.cz/www/_work/j4ventureii/libraries/gantry5/compat/vendor/twig/twig/src/TwigFilter.php(128): class_exists('Twig\\Node\\Node')\n
#6 /www/doc/www.intereso.cz/www/_work/j4ventureii/libraries/vendor/composer/ClassLoader.php(571): include('/www/doc/www.in...')\n
#7 /www/doc/www.intereso.cz/www/_work/j4ventureii/libraries/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile('/www/doc/www.in...')\n
#8 /www/doc/www.intereso.cz/www/_work/j4ventureii/libraries/gantry5/src/classes/Gantry/Component/Theme/AbstractTheme.php(107): Composer\Autoload\ClassLoader->loadClass('Twig\\TwigFilter')\n
#9 /www/doc/www.intereso.cz/www/_work/j4ventureii/libraries/gantry5/src/classes/Gantry/Framework/Theme.php(70): Gantry\Component\Theme\AbstractTheme->extendTwig(Object(Twig\Environment), Object(Twig\Loader\FilesystemLoader))\n
#10 /www/doc/www.intereso.cz/www/_work/j4ventureii/libraries/gantry5/src/classes/Gantry/Component/Theme/AbstractTheme.php(158): Gantry\Framework\Theme->extendTwig(Object(Twig\Environment), Object(Twig\Loader\FilesystemLoader))\n
#11 /www/doc/www.intereso.cz/www/_work/j4ventureii/libraries/gantry5/src/classes/Gantry/Component/Theme/AbstractTheme.php(176): Gantry\Component\Theme\AbstractTheme->renderer()\n
#12 /www/doc/www.intereso.cz/www/_work/j4ventureii/templates/jl_venture_ii/index.php(35): Gantry\Component\Theme\AbstractTheme->render('index.html.twig', Array)\n
#13 /www/doc/www.intereso.cz/www/_work/j4ventureii/libraries/src/Document/HtmlDocument.php(736): require('/www/doc/www.in...')\n
#14 /www/doc/www.intereso.cz/www/_work/j4ventureii/libraries/src/Document/HtmlDocument.php(791): Joomla\CMS\Document\HtmlDocument->_loadTemplate('/www/doc/www.in...', 'index.php')\n
#15 /www/doc/www.intereso.cz/www/_work/j4ventureii/libraries/src/Document/HtmlDocument.php(608): Joomla\CMS\Document\HtmlDocument->_fetchTemplate(Array)\n
#16 /www/doc/www.intereso.cz/www/_work/j4ventureii/libraries/src/Application/CMSApplication.php(1004): Joomla\CMS\Document\HtmlDocument->parse(Array)\n
#17 /www/doc/www.intereso.cz/www/_work/j4ventureii/libraries/src/Application/SiteApplication.php(714): Joomla\CMS\Application\CMSApplication->render()\n
#18 /www/doc/www.intereso.cz/www/_work/j4ventureii/libraries/src/Application/CMSApplication.php(299): Joomla\CMS\Application\SiteApplication->render()\n
#19 /www/doc/www.intereso.cz/www/_work/j4ventureii/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute()\n
#20 /www/doc/www.intereso.cz/www/_work/j4ventureii/index.php(32): require_once('/www/doc/www.in...')\n
#21 {main}
"""