Skip to content

Commit

Permalink
Merge branch 'pr2134' into 4.x
Browse files Browse the repository at this point in the history
Forward port #2134
  • Loading branch information
akrabat committed Jan 30, 2017
2 parents e708acd + 723fcc0 commit 9615ff8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
24 changes: 12 additions & 12 deletions Slim/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class Request extends Message implements ServerRequestInterface
*
* @param Environment $environment The Slim application Environment
*
* @return self
* @return static
*/
public static function createFromEnvironment(Environment $environment)
{
Expand Down Expand Up @@ -286,7 +286,7 @@ public function getOriginalMethod()
* changed request method.
*
* @param string $method Case-sensitive method.
* @return self
* @return static
* @throws \InvalidArgumentException for invalid HTTP methods.
*/
public function withMethod($method)
Expand Down Expand Up @@ -496,7 +496,7 @@ public function getRequestTarget()
* @link http://tools.ietf.org/html/rfc7230#section-2.7 (for the various
* request-target forms allowed in request messages)
* @param mixed $requestTarget
* @return self
* @return static
* @throws InvalidArgumentException if the request target is invalid
*/
public function withRequestTarget($requestTarget)
Expand Down Expand Up @@ -554,7 +554,7 @@ public function getUri()
* @link http://tools.ietf.org/html/rfc3986#section-4.3
* @param UriInterface $uri New request URI to use.
* @param bool $preserveHost Preserve the original state of the Host header.
* @return self
* @return static
*/
public function withUri(UriInterface $uri, $preserveHost = false)
{
Expand Down Expand Up @@ -716,7 +716,7 @@ public function getCookieParam($key, $default = null)
* updated cookie values.
*
* @param array $cookies Array of key/value pairs representing cookies.
* @return self
* @return static
*/
public function withCookieParams(array $cookies)
{
Expand Down Expand Up @@ -777,7 +777,7 @@ public function getQueryParams()
*
* @param array $query Array of query string arguments, typically from
* $_GET.
* @return self
* @return static
*/
public function withQueryParams(array $query)
{
Expand Down Expand Up @@ -816,7 +816,7 @@ public function getUploadedFiles()
* updated body parameters.
*
* @param array $uploadedFiles An array tree of UploadedFileInterface instances.
* @return self
* @return static
* @throws \InvalidArgumentException if an invalid structure is provided.
*/
public function withUploadedFiles(array $uploadedFiles)
Expand Down Expand Up @@ -914,7 +914,7 @@ public function getAttribute($name, $default = null)
* @see getAttributes()
* @param string $name The attribute name.
* @param mixed $value The value of the attribute.
* @return self
* @return static
*/
public function withAttribute($name, $value)
{
Expand All @@ -937,7 +937,7 @@ public function withAttribute($name, $value)
* updated attributes.
*
* @param array $attributes New attributes
* @return self
* @return static
*/
public function withAttributes(array $attributes)
{
Expand All @@ -959,7 +959,7 @@ public function withAttributes(array $attributes)
*
* @see getAttributes()
* @param string $name The attribute name.
* @return self
* @return static
*/
public function withoutAttribute($name)
{
Expand Down Expand Up @@ -1047,7 +1047,7 @@ public function getParsedBody()
*
* @param null|array|object $data The deserialized body data. This will
* typically be in an array or object.
* @return self
* @return static
* @throws \InvalidArgumentException if an unsupported argument type is
* provided.
*/
Expand All @@ -1068,7 +1068,7 @@ public function withParsedBody($data)
*
* Note: This method is not part of the PSR-7 standard.
*
* @return self
* @return $this
*/
public function reparseBody()
{
Expand Down
8 changes: 4 additions & 4 deletions Slim/Http/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public function getStatusCode()
* @param string $reasonPhrase The reason phrase to use with the
* provided status code; if none is provided, implementations MAY
* use the defaults as suggested in the HTTP specification.
* @return self
* @return static
* @throws \InvalidArgumentException For invalid status code arguments.
*/
public function withStatus($code, $reasonPhrase = '')
Expand Down Expand Up @@ -254,7 +254,7 @@ public function getReasonPhrase()
* Proxies to the underlying stream and writes the provided data to it.
*
* @param string $data
* @return self
* @return $this
*/
public function write($data)
{
Expand All @@ -277,7 +277,7 @@ public function write($data)
*
* @param string|UriInterface $url The redirect destination.
* @param int|null $status The redirect HTTP status code.
* @return self
* @return static
*/
public function withRedirect($url, $status = null)
{
Expand Down Expand Up @@ -306,7 +306,7 @@ public function withRedirect($url, $status = null)
* @param int $status The HTTP status code.
* @param int $encodingOptions Json encoding options
* @throws \RuntimeException
* @return self
* @return static
*/
public function withJson($data, $status = null, $encodingOptions = 0)
{
Expand Down

0 comments on commit 9615ff8

Please sign in to comment.