Skip to content

Commit

Permalink
Fix for PHP 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandresalome committed Apr 29, 2012
1 parent f642a2b commit 939518f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Alom/Graphviz/Edge.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ public function render($indent = 0, $spaces = self::DEFAULT_INDENT)
{
$margin = str_repeat($spaces, $indent);

$that = $this; // Fix for PHP 5.3
$edges = array_map(function ($edge) use ($that) {
return $that->escape($edge);
}, $this->list);
$edges = array();
foreach ($this->list as $edge) {
$edges[] = $this->escape($edge);
}

$edge = implode($this->getOperator(), $edges);

Expand Down

0 comments on commit 939518f

Please sign in to comment.