Skip to content

Commit b30447a

Browse files
authored
Fix min and max allowed ports in exception message (#19)
1 parent 0ff6bfe commit b30447a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Uri.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ private function normalizePort($port): ?int
433433

434434
if ($port < 1 || $port > 65535) {
435435
throw new InvalidArgumentException(sprintf(
436-
'Invalid port "%d" specified. It must be a valid TCP/UDP port in range 2..65534.',
436+
'Invalid port "%d" specified. It must be a valid TCP/UDP port in range 1..65535.',
437437
$port
438438
));
439439
}

0 commit comments

Comments
 (0)