Merge pull request #359 from bolt/hotfix/correct-twig-detection

Use `\Twig\Template`, should fix failing e2e tests
This commit is contained in:
Bob den Otter
2019-03-13 19:29:14 +01:00
committed by GitHub

View File

@@ -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;
}