@@ -83,7 +83,7 @@ $deferred = new React\Promise\Deferred();
8383
8484$deferred->then(callable $fulfilledHandler = null, callable $errorHandler = null, callable $progressHandler = null);
8585$deferred->resolve(mixed $promiseOrValue = null);
86- $deferred->reject(mixed $error = null);
86+ $deferred->reject(mixed $reason = null);
8787$deferred->progress(mixed $update = null);
8888```
8989
@@ -152,12 +152,12 @@ Resolves a Deferred. All consumers are notified by having their
152152` $result ` .
153153
154154``` php
155- $resolver->reject(mixed $error = null);
155+ $resolver->reject(mixed $reason = null);
156156```
157157
158158Rejects a Deferred, signalling that the Deferred's computation failed.
159159All consumers are notified by having their ` $errorHandler ` (which they
160- registered via ` $promise->then() ` ) called with ` $error ` .
160+ registered via ` $promise->then() ` ) called with ` $reason ` .
161161
162162``` php
163163$resolver->progress(mixed $update = null);
@@ -290,8 +290,8 @@ getAwesomeResultPromise()
290290 function ($result) {
291291 // Deferred resolved, do something with $result
292292 },
293- function ($error ) {
294- // Deferred rejected, do something with $error
293+ function ($reason ) {
294+ // Deferred rejected, do something with $reason
295295 },
296296 function ($update) {
297297 // Progress notification triggered, do something with $update
0 commit comments