mirror of
https://github.com/jbcr/core.git
synced 2026-04-02 22:32:20 +02:00
Merge pull request #359 from bolt/hotfix/correct-twig-detection
Use `\Twig\Template`, should fix failing e2e tests
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user