From 0e37abf73ae1a836fe18e8c573e4afaa1d29774b Mon Sep 17 00:00:00 2001 From: simon-tma Date: Wed, 22 Oct 2025 10:38:07 +1100 Subject: [PATCH] [12.x] Correct `Response` namespace in `Batch` --- src/Illuminate/Http/Client/Batch.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Illuminate/Http/Client/Batch.php b/src/Illuminate/Http/Client/Batch.php index a25bb7685384..9e6cdefc9cc5 100644 --- a/src/Illuminate/Http/Client/Batch.php +++ b/src/Illuminate/Http/Client/Batch.php @@ -68,28 +68,28 @@ class Batch /** * The callback to run after a request from the batch succeeds. * - * @var (\Closure($this, int|string, \Illuminate\Http\Response): void)|null + * @var (\Closure($this, int|string, \Illuminate\Http\Client\Response): void)|null */ protected $progressCallback = null; /** * The callback to run after a request from the batch fails. * - * @var (\Closure($this, int|string, \Illuminate\Http\Response|\Illuminate\Http\Client\RequestException|\Illuminate\Http\Client\ConnectionException): void)|null + * @var (\Closure($this, int|string, \Illuminate\Http\Client\Response|\Illuminate\Http\Client\RequestException|\Illuminate\Http\Client\ConnectionException): void)|null */ protected $catchCallback = null; /** * The callback to run if all the requests from the batch succeeded. * - * @var (\Closure($this, array): void)|null + * @var (\Closure($this, array): void)|null */ protected $thenCallback = null; /** * The callback to run after all the requests from the batch finish. * - * @var (\Closure($this, array): void)|null + * @var (\Closure($this, array): void)|null */ protected $finallyCallback = null; @@ -161,7 +161,7 @@ public function before(Closure $callback): self /** * Register a callback to run after a request from the batch succeeds. * - * @param (\Closure($this, int|string, \Illuminate\Http\Response): void) $callback + * @param (\Closure($this, int|string, \Illuminate\Http\Client\Response): void) $callback * @return Batch */ public function progress(Closure $callback): self @@ -174,7 +174,7 @@ public function progress(Closure $callback): self /** * Register a callback to run after a request from the batch fails. * - * @param (\Closure($this, int|string, \Illuminate\Http\Response|\Illuminate\Http\Client\RequestException|\Illuminate\Http\Client\ConnectionException): void) $callback + * @param (\Closure($this, int|string, \Illuminate\Http\Client\Response|\Illuminate\Http\Client\RequestException|\Illuminate\Http\Client\ConnectionException): void) $callback * @return Batch */ public function catch(Closure $callback): self @@ -187,7 +187,7 @@ public function catch(Closure $callback): self /** * Register a callback to run after all the requests from the batch succeed. * - * @param (\Closure($this, array): void) $callback + * @param (\Closure($this, array): void) $callback * @return Batch */ public function then(Closure $callback): self @@ -200,7 +200,7 @@ public function then(Closure $callback): self /** * Register a callback to run after all the requests from the batch finish. * - * @param (\Closure($this, array): void) $callback + * @param (\Closure($this, array): void) $callback * @return Batch */ public function finally(Closure $callback): self @@ -223,7 +223,7 @@ public function defer(): DeferredCallback /** * Send all of the requests in the batch. * - * @return array + * @return array */ public function send(): array {