Skip to content

Commit 002eba6

Browse files
committed
Fixes URI and header docblocks
1 parent 1be27e7 commit 002eba6

File tree

1 file changed

+40
-39
lines changed

1 file changed

+40
-39
lines changed

src/HttpAdapter.php

Lines changed: 40 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Http\Adapter;
1313

14+
use Psr\Http\Message\UriInterface;
1415
use Psr\Http\Message\ResponseInterface;
1516

1617
/**
@@ -21,8 +22,8 @@ interface HttpAdapter extends PsrHttpAdapter
2122
/**
2223
* Sends a GET request
2324
*
24-
* @param string|object $uri
25-
* @param array $headers
25+
* @param string|UriInterface $uri
26+
* @param string[] $headers
2627
*
2728
* @throws HttpAdapterException If an error occurred.
2829
*
@@ -31,10 +32,10 @@ interface HttpAdapter extends PsrHttpAdapter
3132
public function get($uri, array $headers = []);
3233

3334
/**
34-
* Sends an HEAD request.
35+
* Sends an HEAD request
3536
*
36-
* @param string|object $uri
37-
* @param array $headers
37+
* @param string|UriInterface $uri
38+
* @param string[] $headers
3839
*
3940
* @throws HttpAdapterException If an error occurred.
4041
*
@@ -43,10 +44,10 @@ public function get($uri, array $headers = []);
4344
public function head($uri, array $headers = []);
4445

4546
/**
46-
* Sends a TRACE request.
47+
* Sends a TRACE request
4748
*
48-
* @param string|object $uri
49-
* @param array $headers
49+
* @param string|UriInterface $uri
50+
* @param string[] $headers
5051
*
5152
* @throws HttpAdapterException If an error occurred.
5253
*
@@ -55,12 +56,12 @@ public function head($uri, array $headers = []);
5556
public function trace($uri, array $headers = []);
5657

5758
/**
58-
* Sends a POST request.
59+
* Sends a POST request
5960
*
60-
* @param string|object $uri
61-
* @param array $headers
62-
* @param array|string $data
63-
* @param array $files
61+
* @param string|UriInterface $uri
62+
* @param string[] $headers
63+
* @param array|string $data
64+
* @param array $files
6465
*
6566
* @throws HttpAdapterException If an error occurred.
6667
*
@@ -69,12 +70,12 @@ public function trace($uri, array $headers = []);
6970
public function post($uri, array $headers = [], $data = [], array $files = []);
7071

7172
/**
72-
* Sends a PUT request.
73+
* Sends a PUT request
7374
*
74-
* @param string|object $uri
75-
* @param array $headers
76-
* @param array|string $data
77-
* @param array $files
75+
* @param string|UriInterface $uri
76+
* @param string[] $headers
77+
* @param array|string $data
78+
* @param array $files
7879
*
7980
* @throws HttpAdapterException If an error occurred.
8081
*
@@ -83,12 +84,12 @@ public function post($uri, array $headers = [], $data = [], array $files = []);
8384
public function put($uri, array $headers = [], $data = [], array $files = []);
8485

8586
/**
86-
* Sends a PATCH request.
87+
* Sends a PATCH request
8788
*
88-
* @param string|object $uri
89-
* @param array $headers
90-
* @param array|string $data
91-
* @param array $files
89+
* @param string|UriInterface $uri
90+
* @param string[] $headers
91+
* @param array|string $data
92+
* @param array $files
9293
*
9394
* @throws HttpAdapterException If an error occurred.
9495
*
@@ -97,12 +98,12 @@ public function put($uri, array $headers = [], $data = [], array $files = []);
9798
public function patch($uri, array $headers = [], $data = [], array $files = []);
9899

99100
/**
100-
* Sends a DELETE request.
101+
* Sends a DELETE request
101102
*
102-
* @param string|object $uri
103-
* @param array $headers
104-
* @param array|string $data
105-
* @param array $files
103+
* @param string|UriInterface $uri
104+
* @param string[] $headers
105+
* @param array|string $data
106+
* @param array $files
106107
*
107108
* @throws HttpAdapterException If an error occurred.
108109
*
@@ -111,12 +112,12 @@ public function patch($uri, array $headers = [], $data = [], array $files = []);
111112
public function delete($uri, array $headers = [], $data = [], array $files = []);
112113

113114
/**
114-
* Sends an OPTIONS request.
115+
* Sends an OPTIONS request
115116
*
116-
* @param string|object $uri
117-
* @param array $headers
118-
* @param array|string $data
119-
* @param array $files
117+
* @param string|UriInterface $uri
118+
* @param string[] $headers
119+
* @param array|string $data
120+
* @param array $files
120121
*
121122
* @throws HttpAdapterException If an error occurred.
122123
*
@@ -125,13 +126,13 @@ public function delete($uri, array $headers = [], $data = [], array $files = [])
125126
public function options($uri, array $headers = [], $data = [], array $files = []);
126127

127128
/**
128-
* Sends a request.
129+
* Sends a request
129130
*
130-
* @param string|object $uri
131-
* @param string $method
132-
* @param array $headers
133-
* @param array|string $data
134-
* @param array $files
131+
* @param string|UriInterface $uri
132+
* @param string $method
133+
* @param string[] $headers
134+
* @param array|string $data
135+
* @param array $files
135136
*
136137
* @throws HttpAdapterException If an error occurred.
137138
*

0 commit comments

Comments
 (0)