From c7fcfb38b13f91919856a4b1a5c5658518f44c06 Mon Sep 17 00:00:00 2001 From: Anu Gupta Date: Thu, 7 Sep 2017 00:49:29 +0100 Subject: [PATCH] Force evaluation order for PHP 7 conpat As per http://php.net/manual/en/migration70.incompatible.php#migration70.incompatible.variable-handling.indirect In PHP 7, indirect access to variables, properties, and methods is now evaluated strictly in left-to-right order. Code that used the old right-to-left evaluation order must be rewritten to explicitly use that evaluation order with curly braces --- vendor/ParsedownLegacy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/ParsedownLegacy.php b/vendor/ParsedownLegacy.php index 71a033e..bbc2d32 100644 --- a/vendor/ParsedownLegacy.php +++ b/vendor/ParsedownLegacy.php @@ -1409,7 +1409,7 @@ class Parsedown if (isset($Element['handler'])) { - $markup .= $this->$Element['handler']($Element['text']); + $markup .= $this->{$Element['handler']}($Element['text']); } else {