From 1e4cbb0dd9615e93e41af5696a23264193c3e885 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 18 Sep 2017 09:34:00 +0100 Subject: [PATCH] RakLibInterface: move array initialization to default value doesn't make sense to do this in the ctor when all the others are normal --- src/pocketmine/network/mcpe/RakLibInterface.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pocketmine/network/mcpe/RakLibInterface.php b/src/pocketmine/network/mcpe/RakLibInterface.php index 77d4146ce2..8d9b888b85 100644 --- a/src/pocketmine/network/mcpe/RakLibInterface.php +++ b/src/pocketmine/network/mcpe/RakLibInterface.php @@ -54,7 +54,7 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{ private $players = []; /** @var string[] */ - private $identifiers; + private $identifiers = []; /** @var int[] */ private $identifiersACK = []; @@ -63,9 +63,7 @@ class RakLibInterface implements ServerInstance, AdvancedSourceInterface{ private $interface; public function __construct(Server $server){ - $this->server = $server; - $this->identifiers = []; $this->rakLib = new RakLibServer($this->server->getLogger(), $this->server->getLoader(), $this->server->getPort(), $this->server->getIp() === "" ? "0.0.0.0" : $this->server->getIp(), false); $this->interface = new ServerHandler($this->rakLib, $this);