Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 5183448

Browse files
committed
Merge branch 'hotfix/37'
Close #37
2 parents af9ff00 + 2239313 commit 5183448

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/MessageTrait.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function getProtocolVersion()
6666
* new protocol version.
6767
*
6868
* @param string $version HTTP protocol version
69-
* @return self
69+
* @return static
7070
*/
7171
public function withProtocolVersion($version)
7272
{
@@ -183,7 +183,7 @@ public function getHeaderLine($name)
183183
*
184184
* @param string $header Case-insensitive header field name.
185185
* @param string|string[] $value Header value(s).
186-
* @return self
186+
* @return static
187187
* @throws \InvalidArgumentException for invalid header names or values.
188188
*/
189189
public function withHeader($header, $value)
@@ -224,7 +224,7 @@ public function withHeader($header, $value)
224224
*
225225
* @param string $header Case-insensitive header field name to add.
226226
* @param string|string[] $value Header value(s).
227-
* @return self
227+
* @return static
228228
* @throws \InvalidArgumentException for invalid header names or values.
229229
*/
230230
public function withAddedHeader($header, $value)
@@ -264,7 +264,7 @@ public function withAddedHeader($header, $value)
264264
* the named header.
265265
*
266266
* @param string $header Case-insensitive header field name to remove.
267-
* @return self
267+
* @return static
268268
*/
269269
public function withoutHeader($header)
270270
{
@@ -300,7 +300,7 @@ public function getBody()
300300
* new body stream.
301301
*
302302
* @param StreamInterface $body Body.
303-
* @return self
303+
* @return static
304304
* @throws \InvalidArgumentException When the body is not valid.
305305
*/
306306
public function withBody(StreamInterface $body)

src/RequestTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function getRequestTarget()
158158
* @link http://tools.ietf.org/html/rfc7230#section-2.7 (for the various
159159
* request-target forms allowed in request messages)
160160
* @param mixed $requestTarget
161-
* @return self
161+
* @return static
162162
* @throws InvalidArgumentException if the request target is invalid.
163163
*/
164164
public function withRequestTarget($requestTarget)
@@ -196,7 +196,7 @@ public function getMethod()
196196
* changed request method.
197197
*
198198
* @param string $method Case-insensitive method.
199-
* @return self
199+
* @return static
200200
* @throws InvalidArgumentException for invalid HTTP methods.
201201
*/
202202
public function withMethod($method)
@@ -244,7 +244,7 @@ public function getUri()
244244
* @link http://tools.ietf.org/html/rfc3986#section-4.3
245245
* @param UriInterface $uri New request URI to use.
246246
* @param bool $preserveHost Preserve the original state of the Host header.
247-
* @return self
247+
* @return static
248248
*/
249249
public function withUri(UriInterface $uri, $preserveHost = false)
250250
{

0 commit comments

Comments
 (0)