From 68be90348cbdbfb4ae14ebe8ba18ad949b40dfc6 Mon Sep 17 00:00:00 2001 From: Aidan Woods Date: Fri, 6 Apr 2018 20:50:34 +0100 Subject: [PATCH] Revert "Explicitly capture $this for PHP 5.3" --- Parsedown.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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()