mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-08 23:39:46 +01:00
Merge pull request #842 from Zankaria/remove-return-type
bans.php: remove multiple return types for PHP 7.4 support
This commit is contained in:
commit
99de8ac728
@ -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…
x
Reference in New Issue
Block a user