mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-30 18:24:29 +01:00
bans.php: remove multiple return types for PHP 7.4 support
This commit is contained in:
parent
eb2ac9c75a
commit
687e5b83c4
@ -268,7 +268,7 @@ class Bans {
|
||||
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) {
|
||||
return self::findSingleAutoGc($ip, $ban_id, $require_ban_view);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user