1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-30 18:24:29 +01:00

bans.php: remove multiple return types for PHP 7.4 support

This commit is contained in:
Zankaria 2024-10-31 14:47:11 +01:00
parent eb2ac9c75a
commit 687e5b83c4

View File

@ -268,7 +268,7 @@ class Bans {
return [$ipstart, $ipend];
}
static public function findSingle(string $ip, int $ban_id, bool $require_ban_view, bool $auto_gc): array|null {
static public function findSingle(string $ip, int $ban_id, bool $require_ban_view, bool $auto_gc): ?array {
if ($auto_gc) {
return self::findSingleAutoGc($ip, $ban_id, $require_ban_view);
} else {