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 */
public $crashInfo = null;
/**
* @param int|null $overrideProtocolVersion Optional custom protocol version to use, defaults to current RakLib's protocol
*/
public function __construct(
\ThreadedLogger $logger,
\Threaded $mainToThreadBuffer,
\Threaded $threadToMainBuffer,
InternetAddress $address,
int $serverId,
int $maxMtuSize = 1492,
?int $overrideProtocolVersion = null,
?SleeperNotifier $sleeper = null
int $maxMtuSize,
int $overrideProtocolVersion,
SleeperNotifier $sleeper
){
$this->address = $address;