Skip to content

Commit 1c79b98

Browse files
authored
Added phpdoc to Response constructor
Added default value to array $info
1 parent ba2e97b commit 1c79b98

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/Http/Response.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,18 @@ class Response extends AbstractResponse
1717
protected $jsonContent;
1818
protected $htmlContent;
1919

20-
public function __construct(Url $startingUrl, Url $url, $statusCode, $contentType, $content, array $headers, array $info)
20+
/**
21+
* Response constructor.
22+
*
23+
* @param Url $startingUrl
24+
* @param Url $url
25+
* @param int $statusCode
26+
* @param string|null $contentType
27+
* @param string $content
28+
* @param array $headers
29+
* @param array $info
30+
*/
31+
public function __construct(Url $startingUrl, Url $url, $statusCode, $contentType, $content, array $headers, array $info = [])
2132
{
2233
parent::__construct($startingUrl, $url, $statusCode, $contentType, $headers, $info);
2334
$this->setContent($content);

0 commit comments

Comments
 (0)