@@ -113,7 +113,7 @@ |
||
113 | 113 | * |
114 | 114 | * After the stream has been detached, the stream is in an unusable state. |
115 | 115 | * |
116 | - * @return resource|null Underlying PHP stream, if any |
|
116 | + * @return resource Underlying PHP stream, if any |
|
117 | 117 | */ |
118 | 118 | public function detach() |
119 | 119 | { |
@@ -547,7 +547,7 @@ discard block |
||
547 | 547 | /** |
548 | 548 | * Get a parameter of this request. |
549 | 549 | * |
550 | - * @param $key |
|
550 | + * @param string $key |
|
551 | 551 | * @param null $default |
552 | 552 | * @return mixed|null |
553 | 553 | */ |
@@ -559,7 +559,7 @@ discard block |
||
559 | 559 | /** |
560 | 560 | * Check if the request has a parameter with the specified key. |
561 | 561 | * |
562 | - * @param $key |
|
562 | + * @param string $key |
|
563 | 563 | * @return bool |
564 | 564 | */ |
565 | 565 | public function hasParameter($key) |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | * While header names are not case-sensitive, getHeaders() will preserve the |
222 | 222 | * exact case in which headers were originally specified. |
223 | 223 | * |
224 | - * @return array Returns an associative array of the message's headers. Each |
|
224 | + * @return HeaderBag Returns an associative array of the message's headers. Each |
|
225 | 225 | * key MUST be a header name, and each value MUST be an array of strings. |
226 | 226 | */ |
227 | 227 | public function getHeaders() |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | * a null value. |
278 | 278 | * |
279 | 279 | * @param string $name Case-insensitive header field name. |
280 | - * @return string|null A string of values as provided for the given header |
|
280 | + * @return string A string of values as provided for the given header |
|
281 | 281 | * concatenated together using a comma. If the header does not appear in |
282 | 282 | * the message, this method MUST return a null value. |
283 | 283 | */ |
@@ -442,7 +442,7 @@ discard block |
||
442 | 442 | * |
443 | 443 | * @link http://tools.ietf.org/html/rfc7231#section-6 |
444 | 444 | * @link http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml |
445 | - * @return string|null Reason phrase, or null if unknown. |
|
445 | + * @return string Reason phrase, or null if unknown. |
|
446 | 446 | */ |
447 | 447 | public function getReasonPhrase() |
448 | 448 | { |
@@ -80,7 +80,6 @@ discard block |
||
80 | 80 | * @param string $path URI path |
81 | 81 | * @param string $query URI query string |
82 | 82 | * @param string $userInfo (optional) username & password encoded in URI |
83 | - * @param string $password URI password |
|
84 | 83 | */ |
85 | 84 | public function __construct($scheme, $host, $port = null, $path = '/', $query = '', $fragment = '', $userInfo = '') |
86 | 85 | { |
@@ -295,7 +294,7 @@ discard block |
||
295 | 294 | * If no port is present, but a scheme is present, this method MAY return |
296 | 295 | * the standard port for that scheme, but SHOULD return null. |
297 | 296 | * |
298 | - * @return null|int The port for the URI. |
|
297 | + * @return integer The port for the URI. |
|
299 | 298 | */ |
300 | 299 | public function getPort() |
301 | 300 | { |
@@ -35,7 +35,7 @@ |
||
35 | 35 | |
36 | 36 | /** |
37 | 37 | * @param Request $request |
38 | - * @return mixed |
|
38 | + * @return Response |
|
39 | 39 | * @throws \RuntimeException |
40 | 40 | */ |
41 | 41 | public function in(Request $request) |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | * |
118 | 118 | * @param array $parameters Optionally the parameters to use. |
119 | 119 | * @throws \Exception |
120 | - * @return string|boolean The URL on success, false on failure. |
|
120 | + * @return string The URL on success, false on failure. |
|
121 | 121 | */ |
122 | 122 | public function generateUrl(array $parameters = array()) |
123 | 123 | { |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | } |
217 | 217 | |
218 | 218 | /** |
219 | - * @return \string[] |
|
219 | + * @return string[] |
|
220 | 220 | */ |
221 | 221 | public function getMethods() |
222 | 222 | { |