File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments