diff --git a/src/Network/Request.php b/src/Network/Request.php index 7d2d6a62313..978e36c42f8 100644 --- a/src/Network/Request.php +++ b/src/Network/Request.php @@ -1007,6 +1007,7 @@ public function withMethod($method) )); } $new->_environment['REQUEST_METHOD'] = $method; + return $new; } @@ -1043,6 +1044,7 @@ public function withQueryParams(array $query) { $new = clone $this; $new->query = $query; + return $new; } @@ -1400,6 +1402,7 @@ public function withCookieParams(array $cookies) { $new = clone $this; $new->cookies = $cookies; + return $new; } @@ -1430,6 +1433,7 @@ public function withParsedBody($data) { $new = clone $this; $new->data = $data; + return $new; }