From 1b94225ce6d8420718e21d0834211a5a1224c5e8 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Wed, 3 Feb 2021 12:00:51 +0100 Subject: Code cleanup: Replace call_user_func* with normal function call equivalent --- it.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it.class') diff --git a/it.class b/it.class index dd62dd7..1c5d403 100644 --- a/it.class +++ b/it.class @@ -472,7 +472,7 @@ static function match($pattern, $string, $p = null) else if (count($m) == 2) # one capture $result = $m[1]; else if ($p['all'] && !$p['pattern_order']) # captures, reorder pattern_order to set_order but without first element - $result = call_user_func_array('array_map', array_merge(array(null), array_slice($m, 1))); + $result = array_map(null, ...array_slice($m, 1)); else # captures, don't return first element (matched string) $result = array_slice($m, 1); -- cgit v1.2.3