Player: mark networkSession field as nullable

while we do null this to break cycles, we also null it for other purposes, and it's null-checked in a few places.
This commit is contained in:
Dylan K. Taylor 2019-12-04 22:54:04 +00:00
parent fb78ec1f62
commit 59793d4b68

View File

@ -151,7 +151,7 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener,
return $lname !== "rcon" and $lname !== "console" and $len >= 1 and $len <= 16 and preg_match("/[^A-Za-z0-9_ ]/", $name) === 0;
}
/** @var NetworkSession */
/** @var NetworkSession|null */
protected $networkSession;
/** @var bool */