Skip to content

Commit 0b01aa9

Browse files
authored
Merge pull request #698 from skipperbent/v5-development
Version 5.4.1.4
2 parents 14c2199 + 99ed44e commit 0b01aa9

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)