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.
UnexpectedValueException
1 parent 7a7326d commit 89f4590Copy full SHA for 89f4590
src/Mesour/IpAddresses/IpAddressNormalizer.php
@@ -34,9 +34,8 @@ final public static function normalizeIpV6($address): string
34
$result = implode(':', $part);
35
if (strlen($result) == 39) {
36
return $result;
37
- } else {
38
- return false;
39
}
+ throw new \UnexpectedValueException('Ip address is not valid.');
40
41
42
final public static function compressIpV6($ip): string
0 commit comments