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 8c141b1 commit a336afaCopy full SHA for a336afa
lib/WhatWg/Url.php
@@ -258,10 +258,7 @@ public function withPort(?int $port): self
258
259
null === $port ||
260
(self::PORT_RANGE_MIN <= $port && self::PORT_RANGE_MAX >= $port) ||
261
- throw new InvalidUrlException(
262
- 'The specified port is malformed.',
263
- [new UrlValidationError((string) $port, UrlValidationErrorType::PortOutOfRange, true)]
264
- );
+ throw new InvalidUrlException('The specified port is malformed.');
265
266
$copy = $this->copy();
267
$copy->url->port = (string) $port;
0 commit comments