Skip to content

Commit ba2e97b

Browse files
authored
Cast $statusCode as int
1 parent dfd621e commit ba2e97b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/AbstractResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function __construct(Url $startingUrl, Url $url, $statusCode, $contentTyp
1818
{
1919
$this->startingUrl = $startingUrl;
2020
$this->url = $url;
21-
$this->statusCode = $statusCode;
21+
$this->statusCode = (int)$statusCode;
2222
$this->contentType = $contentType;
2323
$this->headers = $headers;
2424
$this->info = $info;

0 commit comments

Comments
 (0)