1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-08 23:39:46 +01:00

Merge pull request #842 from Zankaria/remove-return-type

bans.php: remove multiple return types for PHP 7.4 support
This commit is contained in:
Lorenzo Yario 2024-11-20 19:15:33 -08:00 committed by GitHub
commit 99de8ac728
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -268,7 +268,7 @@ class Bans {
return [$ipstart, $ipend]; 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) { if ($auto_gc) {
return self::findSingleAutoGc($ip, $ban_id, $require_ban_view); return self::findSingleAutoGc($ip, $ban_id, $require_ban_view);
} else { } else {