From b7204f192260dec053a42046bb6da2c7d6d153de Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 19 Jan 2015 02:17:01 +0100 Subject: [PATCH] ensure that debug info are always sorted --- lib/Twig/Compiler.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Twig/Compiler.php b/lib/Twig/Compiler.php index 93dc87660..3c989903a 100644 --- a/lib/Twig/Compiler.php +++ b/lib/Twig/Compiler.php @@ -231,6 +231,8 @@ class Twig_Compiler implements Twig_CompilerInterface public function getDebugInfo() { + ksort($this->debugInfo); + return $this->debugInfo; }