Skip to content

Commit

Permalink
return type updated to be PromiseInterface (#45236)
Browse files Browse the repository at this point in the history
Co-authored-by: Parth Jani <parthjani4@gmail.com>
  • Loading branch information
janihq and parthjani7 committed Dec 9, 2022
1 parent 6939c04 commit f72d9eb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions src/Illuminate/Http/Client/PendingRequest.php
Expand Up @@ -657,7 +657,7 @@ public function dd()
*
* @param string $url
* @param array|string|null $query
* @return \Illuminate\Http\Client\Response
* @return \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface
*/
public function get(string $url, $query = null)
{
Expand All @@ -671,7 +671,7 @@ public function get(string $url, $query = null)
*
* @param string $url
* @param array|string|null $query
* @return \Illuminate\Http\Client\Response
* @return \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface
*/
public function head(string $url, $query = null)
{
Expand All @@ -685,7 +685,7 @@ public function head(string $url, $query = null)
*
* @param string $url
* @param array $data
* @return \Illuminate\Http\Client\Response
* @return \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface
*/
public function post(string $url, $data = [])
{
Expand All @@ -699,7 +699,7 @@ public function post(string $url, $data = [])
*
* @param string $url
* @param array $data
* @return \Illuminate\Http\Client\Response
* @return \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface
*/
public function patch($url, $data = [])
{
Expand All @@ -713,7 +713,7 @@ public function patch($url, $data = [])
*
* @param string $url
* @param array $data
* @return \Illuminate\Http\Client\Response
* @return \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface
*/
public function put($url, $data = [])
{
Expand All @@ -727,7 +727,7 @@ public function put($url, $data = [])
*
* @param string $url
* @param array $data
* @return \Illuminate\Http\Client\Response
* @return \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface
*/
public function delete($url, $data = [])
{
Expand Down Expand Up @@ -761,7 +761,7 @@ public function pool(callable $callback)
* @param string $method
* @param string $url
* @param array $options
* @return \Illuminate\Http\Client\Response
* @return \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface
*
* @throws \Exception
*/
Expand Down
14 changes: 7 additions & 7 deletions src/Illuminate/Support/Facades/Http.php
Expand Up @@ -53,14 +53,14 @@
* @method static \Illuminate\Http\Client\PendingRequest throwUnless(bool $condition)
* @method static \Illuminate\Http\Client\PendingRequest dump()
* @method static \Illuminate\Http\Client\PendingRequest dd()
* @method static \Illuminate\Http\Client\Response get(string $url, array|string|null $query = null)
* @method static \Illuminate\Http\Client\Response head(string $url, array|string|null $query = null)
* @method static \Illuminate\Http\Client\Response post(string $url, array $data = [])
* @method static \Illuminate\Http\Client\Response patch(string $url, array $data = [])
* @method static \Illuminate\Http\Client\Response put(string $url, array $data = [])
* @method static \Illuminate\Http\Client\Response delete(string $url, array $data = [])
* @method static \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface get(string $url, array|string|null $query = null)
* @method static \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface head(string $url, array|string|null $query = null)
* @method static \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface post(string $url, array $data = [])
* @method static \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface patch(string $url, array $data = [])
* @method static \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface put(string $url, array $data = [])
* @method static \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface delete(string $url, array $data = [])
* @method static array pool(callable $callback)
* @method static \Illuminate\Http\Client\Response send(string $method, string $url, array $options = [])
* @method static \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface send(string $method, string $url, array $options = [])
* @method static \GuzzleHttp\Client buildClient()
* @method static \GuzzleHttp\Client createClient(\GuzzleHttp\HandlerStack $handlerStack)
* @method static \GuzzleHttp\HandlerStack buildHandlerStack()
Expand Down

0 comments on commit f72d9eb

Please sign in to comment.