Skip to content

Commit

Permalink
Make constructor arguments optional.
Browse files Browse the repository at this point in the history
This makes using the Response in tests simpler.
  • Loading branch information
markstory committed Dec 27, 2012
1 parent 5848c00 commit 30a9d69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Network/Http/Response.php
Expand Up @@ -108,7 +108,7 @@ class Response implements \ArrayAccess {
* @param array $headers Unparsed headers.
* @param string $body The response body.
*/
public function __construct($headers, $body) {
public function __construct($headers = [], $body = '') {
$this->_parseHeaders($headers);
$this->_body = $body;
}
Expand Down

0 comments on commit 30a9d69

Please sign in to comment.