Skip to content

Commit

Permalink
Fix min and max allowed ports in exception message (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
arogachev committed Apr 26, 2023
1 parent 0ff6bfe commit b30447a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ private function normalizePort($port): ?int

if ($port < 1 || $port > 65535) {
throw new InvalidArgumentException(sprintf(
'Invalid port "%d" specified. It must be a valid TCP/UDP port in range 2..65534.',
'Invalid port "%d" specified. It must be a valid TCP/UDP port in range 1..65535.',
$port
));
}
Expand Down

0 comments on commit b30447a

Please sign in to comment.