1
0
mirror of https://github.com/danog/amp.git synced 2024-11-27 04:24:42 +01:00

make function name consistent with others

This commit is contained in:
Daniel Lowrey 2015-05-20 20:09:30 -04:00
parent 29cde175b3
commit e8ac57db31

View File

@ -523,7 +523,7 @@ function __coroutineAdvance($cs) {
$promisor = $cs->promisor;
$cs->promisor = null;
$promisor->fail(new \DomainException(
__generateYieldError($key, $yielded)
__coroutineYieldError($key, $yielded)
));
return;
}
@ -573,7 +573,7 @@ function __coroutineSend($error, $result, $cs) {
}
}
function __generateYieldError(\Generator $generator, $key, $yielded) {
function __coroutineYieldError(\Generator $generator, $key, $yielded) {
return sprintf(
"Unexpected Generator yield (Promise|null expected); %s yielded at key %s",
(is_object($yielded) ? get_class($yielded) : gettype($yielded)),