From b5a9dc4d1a1ce3173745e2e8e14ce37a25f689a3 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Thu, 31 Oct 2024 14:47:11 +0100 Subject: [PATCH] bans.php: remove multiple return types for PHP 7.4 support --- inc/bans.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/bans.php b/inc/bans.php index 8ea3b921..931777a4 100644 --- a/inc/bans.php +++ b/inc/bans.php @@ -142,7 +142,7 @@ class Bans { return array($ipstart, $ipend); } - static public function findSingle(string $ip, int $ban_id, bool $require_ban_view): array|null { + static public function findSingle(string $ip, int $ban_id, bool $require_ban_view): ?array { /** * Use OR in the query to also garbage collect bans. Ideally we should move the whole GC procedure to a separate * script, but it will require a more important restructuring.