$node, 'attribute' => $attribute]; if (null !== $arguments) { $nodes['arguments'] = $arguments; } parent::__construct($nodes, ['type' => $type, 'is_defined_test' => false, 'ignore_strict_check' => false, 'optimizable' => true], $lineno); } public function compile(Compiler $compiler) { $env = $compiler->getEnvironment(); // optimize array calls if ( $this->getAttribute('optimizable') && (!$env->isStrictVariables() || $this->getAttribute('ignore_strict_check')) && !$this->getAttribute('is_defined_test') && Template::ARRAY_CALL === $this->getAttribute('type') ) { $var = '$'.$compiler->getVarName(); $compiler ->raw('(('.$var.' = ') ->subcompile($this->getNode('node')) ->raw(') && is_array(') ->raw($var) ->raw(') || ') ->raw($var) ->raw(' instanceof ArrayAccess ? (') ->raw($var) ->raw('[') ->subcompile($this->getNode('attribute')) ->raw('] ?? null) : null)') ; return; } $compiler->raw('twig_get_attribute($this->env, $this->source, '); if ($this->getAttribute('ignore_strict_check')) { $this->getNode('node')->setAttribute('ignore_strict_check', true); } $compiler ->subcompile($this->getNode('node')) ->raw(', ') ->subcompile($this->getNode('attribute')) ; if ($this->hasNode('arguments')) { $compiler->raw(', ')->subcompile($this->getNode('arguments')); } else { $compiler->raw(', []'); } $compiler->raw(', ') ->repr($this->getAttribute('type')) ->raw(', ')->repr($this->getAttribute('is_defined_test')) ->raw(', ')->repr($this->getAttribute('ignore_strict_check')) ->raw(', ')->repr($env->hasExtension(SandboxExtension::class)) ->raw(', ')->repr($this->getNode('node')->getTemplateLine()) ->raw(')') ; } } __halt_compiler();----SIGNATURE:----nYN69yETXnh3Hp6BjLdVKigOBWuH51PHNNxHTI9qAYewlJq2aa+Tpy8j8RacYbZ9NaA0xhrfN+WaPxjg8kI0sERn30Rj9FdlOj3z2TNm5EdUXjp16LPQGHb1acAkmOKxstgwsOlVTw2E7F3GoXn7I1Ic9ZQb4zO5eKx8HLBmC0Nizk6TLMG4hylCtGOsMGV9A03xttXQGyz9EVsuTfZCSXTSbPhbQLX02nhZ2sCh2QibpZB4xM9xTK3cPla24qWNGZSc3gd+XEtuWQio4t3JE14xnV1/K7A2Dwtz4u3VHMYVJZyllrsfv0ndIhvranSvE/adWcjzrdFr/OPOESp+k3SONqwOA2YwqT73axtAE4r+2Lv0I0k1L6QBf2npRgw99oOXCDyh8HMn23Fy32LEUWnRpfbrEnHYUA6Bnzk0lHkQmZBSw9WPhjAXZOd5vlQU+AU7TkylG1LDygUSb2itvwUXPVi/1yNau+tLXCQLeucvoTeglqwxCNt3FadsQ4ixt0YdUaivqTJKDAWHiyTAKDyp7QHbgiVTDYSpRys65KjPLxeLRTxowBPkvT5aLk5a5zXuVahEt3Pn0pk+I4hZA4uP8Z4O056GWqH+/1OnYLG6N82BUBCD3VlvbJ79gLV7W3DdFLNI8Y2ZG5bIyJ/iNkJjCngXUXsGfBjrniEEOiY=----ATTACHMENT:----ODcwNTMxMzU5NTM3NzQwNSA5MDk1NjY3OTAxNTc1NTMwIDE2MDMxNDk4MzY2MTk4OTU=