diff --git a/Parsedown.php b/Parsedown.php index bec8e03..fca5512 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -1648,13 +1648,10 @@ class Parsedown protected function elementsApplyRecursive($closure, array $Elements) { - # PHP 5.3 compat - $instance = $this; - return array_reduce( $Elements, - function (array $Elements, array $Element) use ($instance, $closure) { - $Elements[] = $instance->elementApplyRecursive($closure, $Element); + function (array $Elements, array $Element) use ($closure) { + $Elements[] = $this->elementApplyRecursive($closure, $Element); return $Elements; }, array()