From a2cc7d6983c874dc6690029236358e5b4d8bbd94 Mon Sep 17 00:00:00 2001 From: cloudjibao Date: Thu, 12 Nov 2015 19:07:28 +1000 Subject: [PATCH 1/2] Update TraceableTwigEnvironment.php Updated getCache method to have the same signature as Twig_Environment --- src/DebugBar/Bridge/Twig/TraceableTwigEnvironment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DebugBar/Bridge/Twig/TraceableTwigEnvironment.php b/src/DebugBar/Bridge/Twig/TraceableTwigEnvironment.php index 0d4c957..0129b64 100644 --- a/src/DebugBar/Bridge/Twig/TraceableTwigEnvironment.php +++ b/src/DebugBar/Bridge/Twig/TraceableTwigEnvironment.php @@ -118,9 +118,9 @@ class TraceableTwigEnvironment extends Twig_Environment return $this->twig->isStrictVariables(); } - public function getCache() + public function getCache($origin = true) { - return $this->twig->getCache(); + return $this->twig->getCache($origin); } public function setCache($cache) From 305332f58f76c628e5a0bb83339d393e6e1371f0 Mon Sep 17 00:00:00 2001 From: cloudjibao Date: Thu, 12 Nov 2015 19:11:45 +1000 Subject: [PATCH 2/2] Update TraceableTwigEnvironment.php Fixed a typo "origin" to "original" --- src/DebugBar/Bridge/Twig/TraceableTwigEnvironment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DebugBar/Bridge/Twig/TraceableTwigEnvironment.php b/src/DebugBar/Bridge/Twig/TraceableTwigEnvironment.php index 0129b64..cdaae7a 100644 --- a/src/DebugBar/Bridge/Twig/TraceableTwigEnvironment.php +++ b/src/DebugBar/Bridge/Twig/TraceableTwigEnvironment.php @@ -118,9 +118,9 @@ class TraceableTwigEnvironment extends Twig_Environment return $this->twig->isStrictVariables(); } - public function getCache($origin = true) + public function getCache($original = true) { - return $this->twig->getCache($origin); + return $this->twig->getCache($original); } public function setCache($cache)