@@ -52,7 +52,7 @@ |
||
52 | 52 | /** |
53 | 53 | * Try get the range instance starting from its string representation. |
54 | 54 | * |
55 | - * @param string|mixed $range |
|
55 | + * @param string $range |
|
56 | 56 | * |
57 | 57 | * @return static|null |
58 | 58 | */ |
@@ -57,7 +57,7 @@ |
||
57 | 57 | /** |
58 | 58 | * Parse a string and returns an IPv4 instance if the string is valid, or null otherwise. |
59 | 59 | * |
60 | - * @param string|mixed $address the address to parse |
|
60 | + * @param string $address the address to parse |
|
61 | 61 | * @param bool $mayIncludePort set to false to avoid parsing addresses with ports |
62 | 62 | * |
63 | 63 | * @return static|null |
@@ -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 | * |
73 | 73 | * @return static|null |
@@ -52,7 +52,7 @@ |
||
52 | 52 | /** |
53 | 53 | * Try get the range instance starting from its string representation. |
54 | 54 | * |
55 | - * @param string|mixed $range |
|
55 | + * @param string $range |
|
56 | 56 | * |
57 | 57 | * @return static|null |
58 | 58 | */ |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | * @param string $address the address to parse |
16 | 16 | * @param bool $mayIncludePort set to false to avoid parsing addresses with ports |
17 | 17 | * |
18 | - * @return Address\AddressInterface|null |
|
18 | + * @return AddressInterface |
|
19 | 19 | */ |
20 | 20 | public static function addressFromString($address, $mayIncludePort = true) |
21 | 21 | { |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | * |
36 | 36 | * @param int[]|array $bytes |
37 | 37 | * |
38 | - * @return Address\AddressInterface|null |
|
38 | + * @return AddressInterface |
|
39 | 39 | */ |
40 | 40 | public static function addressFromBytes(array $bytes) |
41 | 41 | { |