Skip to content

Commit

Permalink
added a note about when to remove a workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Oct 23, 2016
1 parent c97f3b8 commit 7e5c06a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Twig/Parser.php
Expand Up @@ -69,6 +69,7 @@ public function parse(Twig_TokenStream $stream, $test = null, $dropNeedle = fals
{
// push all variables into the stack to keep the current state of the parser
// using get_object_vars() instead of foreach would lead to https://bugs.php.net/71336
// This hack can be removed when min version if PHP 7.0
$vars = array();
foreach ($this as $k => $v) {
$vars[$k] = $v;
Expand Down

0 comments on commit 7e5c06a

Please sign in to comment.