Skip to content

Commit 21d7ad9

Browse files
masoudtajerMasoud Tajer
andauthored
[11.x] Add @throws ConnectionException tag on Http methods for IDE support (#51066)
* feat: add docblock on http methods * feat: use only ConnectionException * feat: use FQN * feat: use FQN --------- Co-authored-by: Masoud Tajer <[email protected]>
1 parent 70320e3 commit 21d7ad9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Illuminate/Http/Client/PendingRequest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,8 @@ public function dd()
764764
* @param string $url
765765
* @param array|string|null $query
766766
* @return \Illuminate\Http\Client\Response
767+
*
768+
* @throws \Illuminate\Http\Client\ConnectionException
767769
*/
768770
public function get(string $url, $query = null)
769771
{
@@ -778,6 +780,8 @@ public function get(string $url, $query = null)
778780
* @param string $url
779781
* @param array|string|null $query
780782
* @return \Illuminate\Http\Client\Response
783+
*
784+
* @throws \Illuminate\Http\Client\ConnectionException
781785
*/
782786
public function head(string $url, $query = null)
783787
{
@@ -792,6 +796,8 @@ public function head(string $url, $query = null)
792796
* @param string $url
793797
* @param array $data
794798
* @return \Illuminate\Http\Client\Response
799+
*
800+
* @throws \Illuminate\Http\Client\ConnectionException
795801
*/
796802
public function post(string $url, $data = [])
797803
{
@@ -806,6 +812,8 @@ public function post(string $url, $data = [])
806812
* @param string $url
807813
* @param array $data
808814
* @return \Illuminate\Http\Client\Response
815+
*
816+
* @throws \Illuminate\Http\Client\ConnectionException
809817
*/
810818
public function patch(string $url, $data = [])
811819
{
@@ -820,6 +828,8 @@ public function patch(string $url, $data = [])
820828
* @param string $url
821829
* @param array $data
822830
* @return \Illuminate\Http\Client\Response
831+
*
832+
* @throws \Illuminate\Http\Client\ConnectionException
823833
*/
824834
public function put(string $url, $data = [])
825835
{
@@ -834,6 +844,8 @@ public function put(string $url, $data = [])
834844
* @param string $url
835845
* @param array $data
836846
* @return \Illuminate\Http\Client\Response
847+
*
848+
* @throws \Illuminate\Http\Client\ConnectionException
837849
*/
838850
public function delete(string $url, $data = [])
839851
{
@@ -870,6 +882,7 @@ public function pool(callable $callback)
870882
* @return \Illuminate\Http\Client\Response
871883
*
872884
* @throws \Exception
885+
* @throws \Illuminate\Http\Client\ConnectionException
873886
*/
874887
public function send(string $method, string $url, array $options = [])
875888
{

0 commit comments

Comments
 (0)