Add compatibility with php 8.2
This commit is contained in:
		| @@ -18,6 +18,8 @@ class Map extends AbstractStructure | ||||
| 	/** var string */ | ||||
| 	public $author; | ||||
| 	/** var string */ | ||||
| 	public $authorNickname; | ||||
| 	/** var string */ | ||||
| 	public $environnement; | ||||
| 	/** var string */ | ||||
| 	public $mood; | ||||
|   | ||||
| @@ -20,6 +20,8 @@ class PlayerInfo extends Player | ||||
| 	/** @var bool */ | ||||
| 	public $isInOfficialMode; | ||||
| 	/** @var int */ | ||||
| 	public $ladderScore; | ||||
| 	/** @var int */ | ||||
| 	public $ladderRanking; | ||||
| 	/** @var int */ | ||||
| 	public $spectatorStatus; | ||||
|   | ||||
| @@ -7,6 +7,7 @@ | ||||
|  | ||||
| namespace Maniaplanet\DedicatedServer\Structures; | ||||
|  | ||||
| #[\AllowDynamicProperties] // Allow Dynamic Properties for php 8.2 and above | ||||
| class ServerOptions extends AbstractStructure | ||||
| { | ||||
| 	/** @var string */ | ||||
| @@ -17,6 +18,8 @@ class ServerOptions extends AbstractStructure | ||||
| 	public $password; | ||||
| 	/** @var string */ | ||||
| 	public $passwordForSpectator; | ||||
| 	/** @var string */ | ||||
| 	public $nextCallVoteTimeOut; | ||||
| 	/** @var float */ | ||||
| 	public $callVoteRatio; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user