summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorChristian Schneider2021-02-03 12:00:51 +0100
committerChristian Schneider2021-02-03 12:00:51 +0100
commit1b94225ce6d8420718e21d0834211a5a1224c5e8 (patch)
tree8961c9b72f61a27a52a7d1ad0fe7be348a2ddeeb /it.class
parent21ccdefc4aea4c2439f7d41ece7d8216d8ba8b40 (diff)
downloaditools-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.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);