We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99e724e commit c9a7897Copy full SHA for c9a7897
lib/Rfc3986/Uri.php
@@ -323,7 +323,7 @@ public function withHost(?string $host): self
323
return match (true) {
324
null !== $host && str_contains($host, "\0") => throw new ValueError('Argument #1 ($host) must not contain any null bytes'),
325
$host === $this->getRawHost() => $this,
326
- HostRecord::validate($host) => $this->withComponent(['host' => $host]),
+ HostRecord::isValid($host) => $this->withComponent(['host' => $host]),
327
default => throw new InvalidUriException('The host component value `'.$host.'` is not a valid host.'),
328
};
329
}
0 commit comments