Skip to content

Commit f5682e5

Browse files
committed
Fix #976
1 parent 1684a94 commit f5682e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Twig/DataGridExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ protected function getTemplatesFromString(Twig_Environment $environment, $theme)
452452
$this->templates = [];
453453

454454
$template = $environment->loadTemplate($theme);
455-
while ($template !== null) {
455+
while ($template instanceof \Twig_Template) {
456456
$this->templates[] = $template;
457457
$template = $template->getParent([]);
458458
}

0 commit comments

Comments
 (0)