diff options
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |