mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-02 19:17:21 +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];
|
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) {
|
if ($auto_gc) {
|
||||||
return self::findSingleAutoGc($ip, $ban_id, $require_ban_view);
|
return self::findSingleAutoGc($ip, $ban_id, $require_ban_view);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user