diff --git a/lib/Twig/Environment.php b/lib/Twig/Environment.php index f6eac6c85..c02668722 100644 --- a/lib/Twig/Environment.php +++ b/lib/Twig/Environment.php @@ -935,6 +935,7 @@ class Twig_Environment public function addGlobal($name, $value) { $this->staging['globals'][$name] = $value; + $this->globals = null; } /**