Fix PHPStan errors

This commit is contained in:
slawkens
2024-11-08 11:44:26 +01:00
parent b6e0184386
commit 88a0bc82d7
5 changed files with 13 additions and 5 deletions

View File

@@ -2,7 +2,10 @@
use MyAAC\Settings;
$up = function () use ($db) {
function updateHighscoresIdsHidden(): void
{
global $db;
if (!$db->hasTable('players')) {
return;
}
@@ -19,6 +22,10 @@ $up = function () use ($db) {
$settings = Settings::getInstance();
$settings->updateInDatabase('core', 'highscores_ids_hidden', implode(', ', $highscores_ignored_ids));
}
$up = function () {
updateHighscoresIdsHidden();
};
$down = function () {