mirror of
https://github.com/twisterarmy/twister.git
synced 2025-03-12 13:21:30 +00:00
This commit is contained in:
parent
6b25eb140c
commit
a97b99decc
@ -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()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user