Skip to content

Commit

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

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

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

/**
Expand Down

0 comments on commit 3a45d9a

Please sign in to comment.