aboutsummaryrefslogtreecommitdiff
path: root/vendor/guzzlehttp/promises/src/Each.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2024-10-10 16:01:54 +0000
committerAndrew Dolgov <fox@fakecake.org>2024-10-10 16:01:54 +0000
commit468f464b486e2ed0527cfd7e80113d37cdd4d07c (patch)
tree60b3243c3796d6a21a349ee7ae8e5c76d5d2717a /vendor/guzzlehttp/promises/src/Each.php
parent7fafad2ac2466b9a17b802d9b29d10056b439e29 (diff)
parent124c4e254250ebac336392711b32dfd6fa3caef3 (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/Each.php')
-rw-r--r--vendor/guzzlehttp/promises/src/Each.php17
1 files changed, 6 insertions, 11 deletions
diff --git a/vendor/guzzlehttp/promises/src/Each.php b/vendor/guzzlehttp/promises/src/Each.php
index 1a7aa0fb6..dd72c8310 100644
--- a/vendor/guzzlehttp/promises/src/Each.php
+++ b/vendor/guzzlehttp/promises/src/Each.php
@@ -19,14 +19,12 @@ final class Each
* index, and the aggregate promise. The callback can invoke any necessary
* side effects and choose to resolve or reject the aggregate if needed.
*
- * @param mixed $iterable Iterator or array to iterate over.
- * @param callable $onFulfilled
- * @param callable $onRejected
+ * @param mixed $iterable Iterator or array to iterate over.
*/
public static function of(
$iterable,
- callable $onFulfilled = null,
- callable $onRejected = null
+ ?callable $onFulfilled = null,
+ ?callable $onRejected = null
): PromiseInterface {
return (new EachPromise($iterable, [
'fulfilled' => $onFulfilled,
@@ -44,14 +42,12 @@ final class Each
*
* @param mixed $iterable
* @param int|callable $concurrency
- * @param callable $onFulfilled
- * @param callable $onRejected
*/
public static function ofLimit(
$iterable,
$concurrency,
- callable $onFulfilled = null,
- callable $onRejected = null
+ ?callable $onFulfilled = null,
+ ?callable $onRejected = null
): PromiseInterface {
return (new EachPromise($iterable, [
'fulfilled' => $onFulfilled,
@@ -67,12 +63,11 @@ final class Each
*
* @param mixed $iterable
* @param int|callable $concurrency
- * @param callable $onFulfilled
*/
public static function ofLimitAll(
$iterable,
$concurrency,
- callable $onFulfilled = null
+ ?callable $onFulfilled = null
): PromiseInterface {
return self::ofLimit(
$iterable,