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:
commit
b889b10626
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user