From a97b99deccf7f2969e8d6b8058b937294809da06 Mon Sep 17 00:00:00 2001 From: therselman Date: Fri, 4 Aug 2017 15:16:58 +0200 Subject: [PATCH] --- src/Twister/Entity.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Twister/Entity.php b/src/Twister/Entity.php index 83e806a..36edbc6 100644 --- a/src/Twister/Entity.php +++ b/src/Twister/Entity.php @@ -51,10 +51,10 @@ class Entity } - public function __call($method, $args) + public function __call($method, ...$args) { array_unshift($args, $this); - return call_user_func_array($this->properties[$method], $args); + return call_user_func($this->properties[$method], ...$args); } public function __invoke() {