mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
fixed #992
This commit is contained in:
@ -178,11 +178,11 @@ class BinaryStream{
|
||||
$this->buffer .= Binary::writeLTriad($v);
|
||||
}
|
||||
|
||||
public function getByte(){
|
||||
public function getByte() : int{
|
||||
return ord($this->buffer{$this->offset++});
|
||||
}
|
||||
|
||||
public function putByte($v){
|
||||
public function putByte(int $v){
|
||||
$this->buffer .= chr($v);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user