summaryrefslogtreecommitdiff
path: root/it_pipe.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_pipe.class')
-rw-r--r--it_pipe.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it_pipe.class b/it_pipe.class
index 3153dae..2fe93db 100644
--- a/it_pipe.class
+++ b/it_pipe.class
@@ -32,10 +32,10 @@ function __call($name, $params)
{
$parampos = self::$parampositions[$name] ?: 0;
array_splice($params, $parampos, 0, [null]); # create room for inserted line arg
- $func = ($t = it::match('(\w+)__(\w+)', $name)) ? array($t[0], $t[1]) : (method_exists($this, $name) ? array($this, $name) : $name);
+ $func = ($t = it::match('(\w+)__(\w+)', $name)) ? [$t[0], $t[1]] : (method_exists($this, $name) ? [$this, $name] : $name);
foreach($this->lines as $i => $params[$parampos])
- $this->lines[$i] = call_user_func_array($func, $params);
+ $this->lines[$i] = $func(...$params);
return $this;
}