diff --git a/src/Entity/Content.php b/src/Entity/Content.php index 59b0f5d3..b901c88f 100644 --- a/src/Entity/Content.php +++ b/src/Entity/Content.php @@ -465,7 +465,7 @@ class Content implements \JsonSerializable } catch (\InvalidArgumentException $e) { $backtrace = new LaravelCollection($e->getTrace()); - if ($backtrace->contains('class', \Twig_Template::class)) { + if ($backtrace->contains('class', \Twig\Template::class)) { // Invoked from within a Template render, so be lenient. return null; }