Skip to content

Commit

Permalink
Revert "Remove PHP 5.3 compatibility code in HTMLHelper"
Browse files Browse the repository at this point in the history
This reverts commit 3a45d9a.
  • Loading branch information
joomdonation committed Jun 7, 2022
1 parent 2d40c7a commit 14b54f1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion libraries/src/HTML/HTMLHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,15 @@ public static function getServiceRegistry(): Registry
*/
protected static function call(callable $function, $args)
{
return \call_user_func_array($function, $args);
// PHP 5.3 workaround
$temp = array();

foreach ($args as &$arg)
{
$temp[] = &$arg;
}

return \call_user_func_array($function, $temp);
}

/**
Expand Down

0 comments on commit 14b54f1

Please sign in to comment.