summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
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);