diff options
author | Christian Schneider | 2021-02-03 12:00:51 +0100 |
---|---|---|
committer | Christian Schneider | 2021-02-03 12:00:51 +0100 |
commit | 1b94225ce6d8420718e21d0834211a5a1224c5e8 (patch) | |
tree | 8961c9b72f61a27a52a7d1ad0fe7be348a2ddeeb /it.class | |
parent | 21ccdefc4aea4c2439f7d41ece7d8216d8ba8b40 (diff) | |
download | itools-1b94225ce6d8420718e21d0834211a5a1224c5e8.tar.gz itools-1b94225ce6d8420718e21d0834211a5a1224c5e8.tar.bz2 itools-1b94225ce6d8420718e21d0834211a5a1224c5e8.zip |
Code cleanup: Replace call_user_func* with normal function call equivalent
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); |