Skip to content

Commit b64a83f

Browse files
authored
[12.x] Improve typehints for Http::pool() (#57811)
* Update PendingRequest.php * Update PendingRequest.php * Update PendingRequest.php
1 parent 23c7895 commit b64a83f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Http/Client/PendingRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -884,9 +884,9 @@ public function delete(string $url, $data = [])
884884
/**
885885
* Send a pool of asynchronous requests concurrently.
886886
*
887-
* @param callable $callback
887+
* @param (callable(\Illuminate\Http\Client\Pool): mixed) $callback
888888
* @param int|null $concurrency
889-
* @return array<array-key, \Illuminate\Http\Client\Response>
889+
* @return array<array-key, \Illuminate\Http\Client\Response|\Illuminate\Http\Client\ConnectionException|\Illuminate\Http\Client\RequestException>
890890
*/
891891
public function pool(callable $callback, ?int $concurrency = null)
892892
{

0 commit comments

Comments
 (0)