This commit is contained in:
therselman 2017-08-04 15:16:58 +02:00
parent 6b25eb140c
commit a97b99decc

View File

@ -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()
{