Browse code

added a note about when to remove a workaround

Fabien Potencier authored on 23/10/2016 21:24:54
Showing 1 changed files
... ...
@@ -69,6 +69,7 @@ class Twig_Parser implements Twig_ParserInterface
69 69
     {
70 70
         // push all variables into the stack to keep the current state of the parser
71 71
         // using get_object_vars() instead of foreach would lead to https://bugs.php.net/71336
72
+        // This hack can be removed when min version if PHP 7.0
72 73
         $vars = array();
73 74
         foreach ($this as $k => $v) {
74 75
             $vars[$k] = $v;