diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2024-10-10 16:01:54 +0000 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2024-10-10 16:01:54 +0000 |
| commit | 468f464b486e2ed0527cfd7e80113d37cdd4d07c (patch) | |
| tree | 60b3243c3796d6a21a349ee7ae8e5c76d5d2717a /vendor/guzzlehttp/promises/src/Promise.php | |
| parent | 7fafad2ac2466b9a17b802d9b29d10056b439e29 (diff) | |
| parent | 124c4e254250ebac336392711b32dfd6fa3caef3 (diff) | |
Merge branch 'feature/guzzle-7.9.2' into 'master'
Update Guzzle to 7.9.2
See merge request tt-rss/tt-rss!70
Diffstat (limited to 'vendor/guzzlehttp/promises/src/Promise.php')
| -rw-r--r-- | vendor/guzzlehttp/promises/src/Promise.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/guzzlehttp/promises/src/Promise.php b/vendor/guzzlehttp/promises/src/Promise.php index 1b07bdc9a..c0c5be2c0 100644 --- a/vendor/guzzlehttp/promises/src/Promise.php +++ b/vendor/guzzlehttp/promises/src/Promise.php @@ -25,16 +25,16 @@ class Promise implements PromiseInterface * @param callable $cancelFn Fn that when invoked cancels the promise. */ public function __construct( - callable $waitFn = null, - callable $cancelFn = null + ?callable $waitFn = null, + ?callable $cancelFn = null ) { $this->waitFn = $waitFn; $this->cancelFn = $cancelFn; } public function then( - callable $onFulfilled = null, - callable $onRejected = null + ?callable $onFulfilled = null, + ?callable $onRejected = null ): PromiseInterface { if ($this->state === self::PENDING) { $p = new Promise(null, [$this, 'cancel']); |