Browse Source

Let people know how to replace all the request data more easily.

Mark Story 8 years ago
parent
commit
185f3cf033
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/Http/ServerRequest.php

+ 2 - 0
src/Http/ServerRequest.php

@@ -2026,6 +2026,8 @@ class ServerRequest implements ArrayAccess, ServerRequestInterface
      * Returns an updated request object. This method returns
      * a *new* request object and does not mutate the request in-place.
      *
+     * Use `withParsedBody()` if you need to replace the all request data.
+     *
      * @param string $name The dot separated path to insert $value at.
      * @param mixed $value The value to insert into the request data.
      * @return static