1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-23 23:20:57 +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 committed by GitHub
parent f60b4d190f
commit b5a9dc4d1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -142,7 +142,7 @@ class Bans {
return array($ipstart, $ipend); 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 * 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. * script, but it will require a more important restructuring.