Merge pull request #694 from skipperbent/v5-release

V5 release
This commit is contained in:
Simon Sessingø
2023-11-27 08:05:15 +01:00
committed by GitHub
+5
View File
@@ -164,6 +164,11 @@ class Url implements JsonSerializable
*/
public function setHost(string $host): self
{
// Strip any potential ports from hostname
if (strpos($host, ':') !== false) {
$host = strstr($host, strrchr($host, ':'), true);
}
$this->host = $host;
return $this;