@@ -64,7 +64,7 @@ |
||
64 | 64 | /** |
65 | 65 | * Parse a string and returns an IPv4 instance if the string is valid, or null otherwise. |
66 | 66 | * |
67 | - * @param string|mixed $address the address to parse |
|
67 | + * @param string $address the address to parse |
|
68 | 68 | * @param bool $mayIncludePort set to false to avoid parsing addresses with ports |
69 | 69 | * @param bool $supportNonDecimalIPv4 set to true to support parsing non decimal (that is, octal and hexadecimal) IPv4 addresses. |
70 | 70 | * |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | * @param bool $mayIncludeZoneID set to false to avoid parsing IPv6 addresses with zone IDs (see RFC 4007) |
18 | 18 | * @param bool $supportNonDecimalIPv4 set to true to support parsing non decimal (that is, octal and hexadecimal) IPv4 addresses. |
19 | 19 | * |
20 | - * @return \IPLib\Address\AddressInterface|null |
|
20 | + * @return AddressInterface |
|
21 | 21 | */ |
22 | 22 | public static function addressFromString($address, $mayIncludePort = true, $mayIncludeZoneID = true, $supportNonDecimalIPv4 = false) |
23 | 23 | { |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * |
38 | 38 | * @param int[]|array $bytes |
39 | 39 | * |
40 | - * @return \IPLib\Address\AddressInterface|null |
|
40 | + * @return AddressInterface |
|
41 | 41 | */ |
42 | 42 | public static function addressFromBytes(array $bytes) |
43 | 43 | { |
@@ -61,7 +61,7 @@ |
||
61 | 61 | /** |
62 | 62 | * Try get the range instance starting from its string representation. |
63 | 63 | * |
64 | - * @param string|mixed $range |
|
64 | + * @param string $range |
|
65 | 65 | * @param bool $supportNonDecimalIPv4 set to true to support parsing non decimal (that is, octal and hexadecimal) IPv4 addresses. |
66 | 66 | * |
67 | 67 | * @return static|null |