} } private function leaveOptimizeFor(Node $node, Environment $env) : void { if ($node instanceof ForNode) { \array_shift($this->loops); \array_shift($this->loopsTargets); \array_shift($this->loopsTargets); } } private function addLoopToCurrent() : void { $this->loops[0]->setAttribute('with_loop', \true); } private function addLoopToAll() : void { foreach ($this->loops as $loop) { $loop->setAttribute('with_loop', \true); } } public function getPriority() : int { return 255; } }
Fatal error: Uncaught Error: Class "MailPoetVendor\Twig\NodeVisitor\OptimizerNodeVisitor" not found in /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/twig/twig/src/Extension/OptimizerExtension.php:14 Stack trace: #0 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/twig/twig/src/ExtensionSet.php(326): MailPoetVendor\Twig\Extension\OptimizerExtension->getNodeVisitors() #1 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/twig/twig/src/ExtensionSet.php(298): MailPoetVendor\Twig\ExtensionSet->initExtension(Object(MailPoetVendor\Twig\Extension\OptimizerExtension)) #2 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/twig/twig/src/ExtensionSet.php(277): MailPoetVendor\Twig\ExtensionSet->initExtensions() #3 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/twig/twig/src/Environment.php(416): MailPoetVendor\Twig\ExtensionSet->getUnaryOperators() #4 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/twig/twig/src/Lexer.php(362): MailPoetVendor\Twig\Environment->getUnaryOperators() #5 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/twig/twig/src/Lexer.php(52): MailPoetVendor\Twig\Lexer->getOperatorRegex() #6 /htdocs/wp-content/plugins/mailpoet/lib/Config/Renderer.php(90): MailPoetVendor\Twig\Lexer->__construct(Object(MailPoet\Config\TwigEnvironment), Array) #7 /htdocs/wp-content/plugins/mailpoet/lib/Config/Renderer.php(47): MailPoet\Config\Renderer->setupSyntax() #8 /htdocs/wp-content/plugins/mailpoet/lib/Config/RendererFactory.php(20): MailPoet\Config\Renderer->__construct(false, '/htdocs/wp-cont...', Object(MailPoetVendor\Twig\Loader\FilesystemLoader), false) #9 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(2319): MailPoet\Config\RendererFactory->getRenderer() #10 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(2273): MailPoetGenerated\FreeCachedContainer->getRendererService() #11 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/symfony/dependency-injection/Container.php(122): MailPoetGenerated\FreeCachedContainer->getInitializerService() #12 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/symfony/dependency-injection/Container.php(110): MailPoetVendor\Symfony\Component\DependencyInjection\Container->make('MailPoet\\Config...', 1) #13 /htdocs/wp-content/plugins/mailpoet/lib/DI/ContainerWrapper.php(39): MailPoetVendor\Symfony\Component\DependencyInjection\Container->get('MailPoet\\Config...') #14 /htdocs/wp-content/plugins/mailpoet/mailpoet_initializer.php(89): MailPoet\DI\ContainerWrapper->get('MailPoet\\Config...') #15 /htdocs/wp-content/plugins/mailpoet/mailpoet.php(206): require_once('/htdocs/wp-cont...') #16 /htdocs/wp-settings.php(462): include_once('/htdocs/wp-cont...') #17 /htdocs/wp-config.php(96): require_once('/htdocs/wp-sett...') #18 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #19 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #20 /htdocs/index.php(17): require('/htdocs/wp-blog...') #21 {main} thrown in /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/twig/twig/src/Extension/OptimizerExtension.php on line 14