Skip to content

Commit fa164e0

Browse files
committed
Sync with weierophinney/fig-standards#b8f87f4
1 parent 488c9fc commit fa164e0

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/MessageInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function removeHeader($header);
126126
/**
127127
* Gets the body of the message.
128128
*
129-
* @return StreamableInterface|null Returns the body, or null if not set.
129+
* @return StreamableInterface Returns the body as a stream.
130130
*/
131131
public function getBody();
132132

src/ServerRequestInterface.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ public function setCookieParams(array $cookies);
7979
*
8080
* Retrieves the deserialized query string arguments, if any.
8181
*
82+
* Note: the query params might not be in sync with the URL or server
83+
* params. If you need to ensure you are only getting the original
84+
* values, you may need to parse the composed URL or the `QUERY_STRING`
85+
* composed in the server params.
86+
*
8287
* @return array
8388
*/
8489
public function getQueryParams();
@@ -94,6 +99,9 @@ public function getQueryParams();
9499
* purposes of how duplicate query parameters are handled, and how nested
95100
* sets are handled.
96101
*
102+
* Setting query string arguments MUST NOT change the URL stored by the
103+
* request, nor the values in the server params.
104+
*
97105
* @param array $query Array of query string arguments, typically from
98106
* $_GET.
99107
* @return void

0 commit comments

Comments
 (0)