1
0
mirror of https://github.com/danog/amp.git synced 2025-01-22 13:21:16 +01:00

Fixed typos an promise -> a promise

This commit is contained in:
Pieter Hordijk 2017-03-12 17:05:52 +01:00 committed by Niklas Keller
parent d748855a51
commit 2db7bed1b6
3 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ use Amp\CallableMaker;
use Amp\Promise;
/**
* An promise that cannot be externally resolved. Used by Deferred in development mode.
* A promise that cannot be externally resolved. Used by Deferred in development mode.
*
* @internal
*/

View File

@ -11,7 +11,7 @@ final class Success implements Stream {
private $value;
/**
* @param mixed $value Anything other than an Promise object.
* @param mixed $value Anything other than a Promise object.
*
* @throws \Error If a promise is given as the value.
*/

View File

@ -15,7 +15,7 @@ class PromiseTest extends \PHPUnit\Framework\TestCase {
private $originalErrorHandler;
/**
* An Promise to use for a test with resolution methods.
* A Promise to use for a test with resolution methods.
* Note that the callables shall take care of the Promise being resolved in any case. Example: The actual implementation delays resolution to the next loop tick. The callables then must run one tick of the loop in order to ensure resolution.
*
* @return array(Promise, callable, callable) where the last two callables are resolving the Promise with a result or a Throwable/Exception respectively
@ -191,7 +191,7 @@ class PromiseTest extends \PHPUnit\Framework\TestCase {
$this->assertTrue($invoked);
}
/** Implementations MAY fail upon resolution with an Promise, but they definitely MUST NOT return an Promise */
/** Implementations MAY fail upon resolution with a Promise, but they definitely MUST NOT return a Promise */
function testPromiseResolutionWithPromise() {
list($success, $succeeder) = $this->promise();
$succeeder(true);