Lines Matching refs:onRejected
142 All consumers are notified by having `$onRejected` (which they registered via
183 $transformedPromise = $promise->then(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null);
194 * `$onRejected` will be invoked once the promise is rejected and passed the
201 `$onFulfilled` or `$onRejected`, whichever is called, or will reject with
207 1. Only one of `$onFulfilled` or `$onRejected` will be called,
209 2. `$onFulfilled` and `$onRejected` will never be called more
235 $promise->done(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null);
241 It will cause a fatal error if either `$onFulfilled` or `$onRejected` throw or
255 $promise->otherwise(callable $onRejected);
261 $promise->then(null, $onRejected);
264 Additionally, you can type hint the `$reason` argument of `$onRejected` to catch
791 `$onFulfilled` or `$onRejected` callbacks you provide to done, it will be