Fix depreciation giving null to mb_strtolower

master 1.5.1
Julien Rosset 1 year ago
parent 41ec33dc9b
commit a9ea5413fc

@ -213,7 +213,7 @@ class UrlInfo {
* @return $this
*/
public function setProtocol (?string $protocol = null): self {
$this->protocol = self::ensureNull(mb_strtolower($protocol));
$this->protocol = self::ensureNull(mb_strtolower($protocol ?? ''));
return $this;
}
@ -241,7 +241,7 @@ class UrlInfo {
* @return $this
*/
public function setHost (?string $host = null): self {
$this->host = self::ensureNull(mb_strtolower($host));
$this->host = self::ensureNull(mb_strtolower($host ?? ''));
return $this;
}

Loading…
Cancel
Save