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
This commit is contained in:
Anu Gupta 2017-09-07 00:49:29 +01:00 committed by GitHub
parent 846d111947
commit c7fcfb38b1
1 changed files with 1 additions and 1 deletions

View File

@ -1409,7 +1409,7 @@ class Parsedown
if (isset($Element['handler']))
{
$markup .= $this->$Element['handler']($Element['text']);
$markup .= $this->{$Element['handler']}($Element['text']);
}
else
{