From 375d3f522af9e7089bf86d943b83d49af8b4e0b2 Mon Sep 17 00:00:00 2001 From: Bob den Otter Date: Wed, 13 Mar 2019 17:08:39 +0100 Subject: [PATCH] Use `\Twig\Template` --- src/Entity/Content.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }