Coroutine bugfix

This commit is contained in:
Daniil Gentili 2020-10-08 15:48:59 +02:00
parent 5dc330119b
commit a937d1d994
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -237,7 +237,7 @@ final class Coroutine implements Promise, \ArrayAccess, JsonSerializable
{
return Tools::call((function () use ($name, $arguments): \Generator {
$result = yield $this;
return $result->{$name}($arguments);
return $result->{$name}(...$arguments);
})());
}
/**