You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
composer show timber/timber
name : timber/timber
descrip. : Create WordPress themes with beautiful OOP code and the Twig Template Engine
keywords : templating, themes, timber, twig, wordpress
versions : * 2.x-dev
released : 2024-05-07, this week
type : library
and update to just-released Twig 3.10
composer show twig/twig
name : twig/twig
descrip. : Twig, the flexible, fast, and secure template language for PHP
keywords : templating
versions : * v3.10.0
released : 2024-05-11, today
type : library
...
access to my site front-page, fires a new fatal error; e.g.,
( ! ) Fatal error: Uncaught LogicException: You must call "setEnvironment()" before calling "Twig\Extension\EscaperExtension::setEscaper()". in /srv/www/wp.app/web/app/themes/test-flynt/vendor/twig/twig/src/Extension/EscaperExtension.php on line 127
( ! ) LogicException: You must call "setEnvironment()" before calling "Twig\Extension\EscaperExtension::setEscaper()". in /srv/www/wp.app/web/app/themes/test-flynt/vendor/twig/twig/src/Extension/EscaperExtension.php on line 127
...
114 /**
* Defines a new escaper to be used via the escape filter.
*
* @param string $strategy The strategy name that should be used as a strategy in the escape call
* @param callable(Environment, string) $callable A valid PHP callable
*
* @deprecated since Twig 3.10
*/
public function setEscaper($strategy, callable $callable)
{
trigger_deprecation('twig/twig', '3.10', 'The "%s()" method is deprecated, use the "Twig\Runtime\EscaperRuntime::setEscaper()" method instead (be warned that Environment is not passed anymore to the callable).', __METHOD__);
if (!isset($this->environment)) {
127 throw new \LogicException(sprintf('You must call "setEnvironment()" before calling "%s()".', __METHOD__));
}
if (!isset($this->escaper)) {
throw new \LogicException(sprintf('You must call "setEscaperRuntime()" before calling "%s()".', __METHOD__));
}
$this->escapers[$strategy] = $callable;
$callable = function ($string, $charset) use ($callable) {
return $callable($this->environment, $string);
};
$this->escaper->setEscaper($strategy, $callable);
}
...
The text was updated successfully, but these errors were encountered:
pgnd
changed the title
Fata Error: Uncaught Logic Exception -- twig 3.10 deprecation @ timber/src/Twig.php
Fatal Error: Uncaught Logic Exception -- twig 3.10 deprecation @ timber/src/Twig.php
May 11, 2024
with
and update to just-released Twig 3.10
access to my site front-page, fires a new fatal error; e.g.,
the call stack identifies,
checking Timber src,
and @ twig src,
the deprecation causing the error,
The text was updated successfully, but these errors were encountered: