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

Loading…
Cancel
Save