RakLibServer: make all parameters mandatory

This commit is contained in:
Dylan K. Taylor 2021-05-08 20:11:16 +01:00
parent 2ce6a87d05
commit 1003fde2fc
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -72,18 +72,15 @@ class RakLibServer extends Thread{
/** @var string|null */ /** @var string|null */
public $crashInfo = null; public $crashInfo = null;
/**
* @param int|null $overrideProtocolVersion Optional custom protocol version to use, defaults to current RakLib's protocol
*/
public function __construct( public function __construct(
\ThreadedLogger $logger, \ThreadedLogger $logger,
\Threaded $mainToThreadBuffer, \Threaded $mainToThreadBuffer,
\Threaded $threadToMainBuffer, \Threaded $threadToMainBuffer,
InternetAddress $address, InternetAddress $address,
int $serverId, int $serverId,
int $maxMtuSize = 1492, int $maxMtuSize,
?int $overrideProtocolVersion = null, int $overrideProtocolVersion,
?SleeperNotifier $sleeper = null SleeperNotifier $sleeper
){ ){
$this->address = $address; $this->address = $address;