aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Security
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Security')
-rw-r--r--lib/private/Security/Normalizer/IpAddress.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/Security/Normalizer/IpAddress.php b/lib/private/Security/Normalizer/IpAddress.php
index 2d5dea67af1..98d85ce07a1 100644
--- a/lib/private/Security/Normalizer/IpAddress.php
+++ b/lib/private/Security/Normalizer/IpAddress.php
@@ -96,10 +96,9 @@ class IpAddress {
* Returns the IPv4 address embedded in an IPv6 if applicable.
* The detected format is "::ffff:x.x.x.x" using the binary form.
*
- * @param string $ipv6 IPv6 string
- * @return null|string embedded IPv4 string or null if none was found
+ * @return string|null embedded IPv4 string or null if none was found
*/
- private function getEmbeddedIpv4($ipv6) {
+ private function getEmbeddedIpv4(string $ipv6): ?string {
$binary = inet_pton($ipv6);
if (!$binary) {
return null;