From a204106bd20224c36141e2c3b9cb383346ab8da2 Mon Sep 17 00:00:00 2001 From: Yonas Habteab Date: Thu, 17 Aug 2023 11:09:13 +0200 Subject: [PATCH] JobUtils: Fix wrong method return type hint --- library/X509/Common/JobUtils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/X509/Common/JobUtils.php b/library/X509/Common/JobUtils.php index 7a89def1..d868a4ee 100644 --- a/library/X509/Common/JobUtils.php +++ b/library/X509/Common/JobUtils.php @@ -123,9 +123,9 @@ public static function addrToNumber(string $addr): ?GMP * @param $num * @param bool $ipv6 * - * @return ?string + * @return false|string */ - public static function numberToAddr($num, bool $ipv6 = true): ?string + public static function numberToAddr($num, bool $ipv6 = true) { if ($ipv6) { return inet_ntop(str_pad(gmp_export($num), 16, "\0", STR_PAD_LEFT));