DataPacket: fixed bad null assignment to buffer in clean()

this is never expected to be null, so implicitly relies on PHP magic behaviour to convert it to string when appended.
This commit is contained in:
Dylan K. Taylor 2019-12-01 20:36:56 +00:00
parent 293c2710d0
commit 92e1811b06

View File

@ -135,7 +135,7 @@ abstract class DataPacket extends NetworkBinaryStream{
abstract public function handle(NetworkSession $session) : bool;
public function clean(){
$this->buffer = null;
$this->buffer = "";
$this->isEncoded = false;
$this->offset = 0;
return $this;