@@ -67,7 +67,7 @@ |
||
67 | 67 | /** |
68 | 68 | * Parse a string and returns an IPv6 instance if the string is valid, or null otherwise. |
69 | 69 | * |
70 | - * @param string|mixed $address the address to parse |
|
70 | + * @param string $address the address to parse |
|
71 | 71 | * @param bool $mayIncludePort set to false to avoid parsing addresses with ports |
72 | 72 | * @param bool $mayIncludeZoneID set to false to avoid parsing addresses with zone IDs (see RFC 4007) |
73 | 73 | * |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | * @param bool $mayIncludePort set to false to avoid parsing addresses with ports |
17 | 17 | * @param bool $mayIncludeZoneID set to false to avoid parsing IPv6 addresses with zone IDs (see RFC 4007) |
18 | 18 | * |
19 | - * @return Address\AddressInterface|null |
|
19 | + * @return AddressInterface |
|
20 | 20 | */ |
21 | 21 | public static function addressFromString($address, $mayIncludePort = true, $mayIncludeZoneID = true) |
22 | 22 | { |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * |
37 | 37 | * @param int[]|array $bytes |
38 | 38 | * |
39 | - * @return Address\AddressInterface|null |
|
39 | + * @return AddressInterface |
|
40 | 40 | */ |
41 | 41 | public static function addressFromBytes(array $bytes) |
42 | 42 | { |