fix php 8.4 compatibility
This commit is contained in:
		| @@ -31,7 +31,7 @@ class BeuCustomConfig implements CallbackListener, Plugin { | |||||||
| 	* Constants | 	* Constants | ||||||
| 	*/ | 	*/ | ||||||
| 	const PLUGIN_ID			= 193; | 	const PLUGIN_ID			= 193; | ||||||
| 	const PLUGIN_VERSION	= 1.2; | 	const PLUGIN_VERSION	= 1.3; | ||||||
| 	const PLUGIN_NAME		= 'BeuCustomConfig'; | 	const PLUGIN_NAME		= 'BeuCustomConfig'; | ||||||
| 	const PLUGIN_AUTHOR		= 'Beu'; | 	const PLUGIN_AUTHOR		= 'Beu'; | ||||||
|  |  | ||||||
| @@ -149,7 +149,7 @@ class BeuCustomConfig implements CallbackListener, Plugin { | |||||||
| 		]); | 		]); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public function updateSettings(Setting $setting = null) { | 	public function updateSettings(?Setting $setting = null) { | ||||||
| 		if ($setting !== null && $setting->belongsToClass($this)) { | 		if ($setting !== null && $setting->belongsToClass($this)) { | ||||||
| 			$this->changeManiacontrolSettings(); | 			$this->changeManiacontrolSettings(); | ||||||
| 		} | 		} | ||||||
|   | |||||||
| @@ -25,7 +25,7 @@ class BeuDonationButton implements ManialinkPageAnswerListener, CallbackListener | |||||||
| 	* Constants | 	* Constants | ||||||
| 	*/ | 	*/ | ||||||
| 	const PLUGIN_ID			= 169; | 	const PLUGIN_ID			= 169; | ||||||
| 	const PLUGIN_VERSION	= 1.0; | 	const PLUGIN_VERSION	= 1.1; | ||||||
| 	const PLUGIN_NAME		= 'Beu Donation Button'; | 	const PLUGIN_NAME		= 'Beu Donation Button'; | ||||||
| 	const PLUGIN_AUTHOR		= 'Beu'; | 	const PLUGIN_AUTHOR		= 'Beu'; | ||||||
|  |  | ||||||
| @@ -103,7 +103,7 @@ class BeuDonationButton implements ManialinkPageAnswerListener, CallbackListener | |||||||
| 		$this->maniaControl->getManialinkManager()->sendManialink($this->manialink,$player->login); | 		$this->maniaControl->getManialinkManager()->sendManialink($this->manialink,$player->login); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	public function updateSettings(Setting $setting = null) { | 	public function updateSettings(?Setting $setting = null) { | ||||||
| 		$this->generateManialink(); | 		$this->generateManialink(); | ||||||
| 		$this->maniaControl->getManialinkManager()->sendManialink($this->manialink); | 		$this->maniaControl->getManialinkManager()->sendManialink($this->manialink); | ||||||
| 	} | 	} | ||||||
|   | |||||||
| @@ -26,7 +26,7 @@ class SmallTextOverlay implements TimerListener, CallbackListener, Plugin { | |||||||
| 	* Constants | 	* Constants | ||||||
| 	*/ | 	*/ | ||||||
| 	const PLUGIN_ID			= 195; | 	const PLUGIN_ID			= 195; | ||||||
| 	const PLUGIN_VERSION	= 1.0; | 	const PLUGIN_VERSION	= 1.1; | ||||||
| 	const PLUGIN_NAME		= 'SmallTextOverlay'; | 	const PLUGIN_NAME		= 'SmallTextOverlay'; | ||||||
| 	const PLUGIN_AUTHOR		= 'Beu'; | 	const PLUGIN_AUTHOR		= 'Beu'; | ||||||
|  |  | ||||||
| @@ -115,7 +115,7 @@ class SmallTextOverlay implements TimerListener, CallbackListener, Plugin { | |||||||
| 	 * @param  Setting $setting | 	 * @param  Setting $setting | ||||||
| 	 * @return void | 	 * @return void | ||||||
| 	 */ | 	 */ | ||||||
| 	public function updateSettings(Setting $setting = null) { | 	public function updateSettings(?Setting $setting = null) { | ||||||
| 		if ($setting !== null && !$setting->belongsToClass($this)) { | 		if ($setting !== null && !$setting->belongsToClass($this)) { | ||||||
| 			return; | 			return; | ||||||
| 		} | 		} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user