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