Skip to content

Commit 99ed44e

Browse files
committed
Fixed setHost nullable value
1 parent 565a926 commit 99ed44e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Pecee/Http/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ public function setUrl(Url $url): void
406406
public function setHost(?string $host): void
407407
{
408408
// Strip any potential ports from hostname
409-
if (strpos($host, ':') !== false) {
409+
if (strpos((string)$host, ':') !== false) {
410410
$host = strstr($host, strrchr($host, ':'), true);
411411
}
412412

0 commit comments

Comments
 (0)