mirror of
https://github.com/twisterarmy/twister.git
synced 2025-03-12 21:31:26 +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);
|
array_unshift($args, $this);
|
||||||
return call_user_func_array($this->properties[$method], $args);
|
return call_user_func($this->properties[$method], ...$args);
|
||||||
}
|
}
|
||||||
public function __invoke()
|
public function __invoke()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user