Always provide a string to TwigSource. Fixes #4209.
This commit is contained in:
parent
9113e6f418
commit
936525f99b
|
|
@ -60,7 +60,7 @@ class Loader extends LoaderBase implements TwigLoaderInterface
|
|||
$dataHolder = (object) ['content' => $content];
|
||||
Event::fire('cms.template.processTwigContent', [$this->obj, $dataHolder]);
|
||||
|
||||
return new TwigSource($dataHolder->content, $name);
|
||||
return new TwigSource((string) $dataHolder->content, $name);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue