phpstan level 2

This commit is contained in:
slawkens
2024-02-01 21:30:34 +01:00
parent 8705d3eedd
commit 42ce80170e
16 changed files with 56 additions and 21 deletions

View File

@@ -147,7 +147,7 @@ if ($cache->enabled()) {
}
$offset = ($page - 1) * $configHighscoresPerPage;
$query->join('accounts', 'accounts.id', '=', 'players.account_id')
$query->join('accounts', 'accounts.id', '=', 'players.account_id') /** @phpstan-ignore-line */
->withOnlineStatus()
->whereNotIn('players.id', setting('core.highscores_ids_hidden'))
->notDeleted()
@@ -203,8 +203,8 @@ if (empty($highscores)) {
$highscores = $query->get()->map(function($row) {
$tmp = $row->toArray();
$tmp['online'] = $row->online_status;
$tmp['vocation'] = $row->vocation_name;
$tmp['online'] = $row->online_status; /** @phpstan-ignore-line */
$tmp['vocation'] = $row->vocation_name; /** @phpstan-ignore-line */
unset($tmp['online_table']);
return $tmp;