change default parameter for the linter

This commit is contained in:
Beu 2025-03-13 15:58:24 +01:00
parent fe1f9b9c8b
commit 9a9122ed0e

View File

@ -670,7 +670,7 @@ class MatchManagerCore implements CallbackListener, CommandListener, TimerListen
*
* @param Setting $setting
*/
public function updateSettings(Setting $setting = null) {
public function updateSettings(?Setting $setting = null) {
if (isset($setting) && $setting->belongsToClass($this) && $this->matchStarted) {
if ($setting->setting == self::SETTING_MATCH_GAMEMODE_BASE && $setting->value != $this->currentgmbase) {
$setting->value = $this->currentgmbase;