Fixed setHost nullable value

This commit is contained in:
Simon
2023-11-29 01:20:00 +01:00
parent 565a926bd3
commit 99ed44eb1e
+1 -1
View File
@@ -406,7 +406,7 @@ class Request
public function setHost(?string $host): void
{
// Strip any potential ports from hostname
if (strpos($host, ':') !== false) {
if (strpos((string)$host, ':') !== false) {
$host = strstr($host, strrchr($host, ':'), true);
}