This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Usage of this inside closure incompatible with 5.3.

  • Loading branch information...
jmalloc committed Jan 16, 2013
1 parent aa38453 commit b9877ebd0fa5abe0875fac7db11bcab5f44e66d0
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/Icecave/Rasta/Renderer.php
@@ -179,11 +179,12 @@ public function visitPhpBlock(PhpBlock $node, $closeTag = true)
$code = '';
$useStatements = array();
- $flushUseStatements = function () use (&$useStatements, &$code) {
+ $newlineString = $this->newlineString;
+ $flushUseStatements = function () use (&$useStatements, &$code, $newlineString) {
if ($useStatements) {
sort($useStatements);
$code .= implode('', $useStatements);
- $code .= $this->newlineString;
+ $code .= $newlineString;
$useStatements = array();
}
};

0 comments on commit b9877eb

Please sign in to comment.