Coroutine bugfix
This commit is contained in:
parent
5dc330119b
commit
a937d1d994
@ -237,7 +237,7 @@ final class Coroutine implements Promise, \ArrayAccess, JsonSerializable
|
|||||||
{
|
{
|
||||||
return Tools::call((function () use ($name, $arguments): \Generator {
|
return Tools::call((function () use ($name, $arguments): \Generator {
|
||||||
$result = yield $this;
|
$result = yield $this;
|
||||||
return $result->{$name}($arguments);
|
return $result->{$name}(...$arguments);
|
||||||
})());
|
})());
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user