mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
NetworkSession: Fixed missing nullable declarations
phpstan doesn't report these because .. reasons .. @ondrejmirtes this is causing bugs to go unfound :( I'm aware of the irony that I just silenced the bugs that were exposed by this commit .. that's an architectural problem for another day
This commit is contained in:
@ -137,8 +137,8 @@ class NetworkSession{
|
||||
private $ip;
|
||||
/** @var int */
|
||||
private $port;
|
||||
/** @var PlayerInfo */
|
||||
private $info;
|
||||
/** @var PlayerInfo|null */
|
||||
private $info = null;
|
||||
/** @var int|null */
|
||||
private $ping = null;
|
||||
|
||||
@ -158,8 +158,8 @@ class NetworkSession{
|
||||
/** @var CompoundTag|null */
|
||||
private $cachedOfflinePlayerData = null;
|
||||
|
||||
/** @var EncryptionContext */
|
||||
private $cipher;
|
||||
/** @var EncryptionContext|null */
|
||||
private $cipher = null;
|
||||
|
||||
/** @var Packet[] */
|
||||
private $sendBuffer = [];
|
||||
|
Reference in New Issue
Block a user