diff --git a/src/Extension/CoreExtension.php b/src/Extension/CoreExtension.php index ee0a1dbaf47..fa97918b653 100644 --- a/src/Extension/CoreExtension.php +++ b/src/Extension/CoreExtension.php @@ -1448,9 +1448,11 @@ public static function include(Environment $env, $context, $template, $variables if (!$ignoreMissing) { throw $e; } + + return ''; } - return $loaded ? $loaded->render($variables) : ''; + return $loaded->render($variables); } finally { if ($isSandboxed && !$alreadySandboxed) { $sandbox->disableSandbox();