提交的内容
This commit is contained in:
4
vendor/guzzlehttp/promises/src/RejectedPromise.php
vendored
Executable file → Normal file
4
vendor/guzzlehttp/promises/src/RejectedPromise.php
vendored
Executable file → Normal file
@ -31,8 +31,8 @@ class RejectedPromise implements PromiseInterface
|
||||
}
|
||||
|
||||
public function then(
|
||||
callable $onFulfilled = null,
|
||||
callable $onRejected = null
|
||||
?callable $onFulfilled = null,
|
||||
?callable $onRejected = null
|
||||
): PromiseInterface {
|
||||
// If there's no onRejected callback then just return self.
|
||||
if (!$onRejected) {
|
||||
|
||||
Reference in New Issue
Block a user