1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-23 23:20:57 +01:00

Merge pull request #834 from Zankaria/patch-2

Fix #830 remove multiple return types for PHP 7.4 support.
This commit is contained in:
Lorenzo Yario 2024-10-31 13:52:09 -07:00 committed by GitHub
commit b889b10626
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);
}
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.