Binary strict types (#969)

* Some Binary cleanup, type-hints and strict types
yes, I know this is very crashy... that's good, because it highlights unexpected behaviour

* added some default values
This commit is contained in:
Dylan K. Taylor
2017-06-03 09:39:45 +01:00
committed by GitHub
parent 8bb0e8d398
commit 22ba017965
8 changed files with 234 additions and 114 deletions

View File

@ -29,7 +29,7 @@ class AvailableCommandsPacket extends DataPacket{
const NETWORK_ID = ProtocolInfo::AVAILABLE_COMMANDS_PACKET;
public $commands; //JSON-encoded command data
public $unknown;
public $unknown = "";
public function decode(){
$this->commands = $this->getString();