Fixed some doc comments

This commit is contained in:
Dylan K. Taylor 2019-01-16 20:48:26 +00:00
parent 23269da1a6
commit c9c6a5dc94
3 changed files with 4 additions and 4 deletions

View File

@ -249,7 +249,7 @@ class NetworkBinaryStream extends BinaryStream{
* Reads a list of Attributes from the stream. * Reads a list of Attributes from the stream.
* @return Attribute[] * @return Attribute[]
* *
* @throws \UnexpectedValueException if reading an attribute with an unrecognized name * @throws BinaryDataException if reading an attribute with an unrecognized name
*/ */
public function getAttributeList() : array{ public function getAttributeList() : array{
$list = []; $list = [];

View File

@ -102,7 +102,7 @@ class LoginPacket extends DataPacket{
* @param string $name * @param string $name
* @param $data * @param $data
* *
* @throws \UnexpectedValueException * @throws BadPacketException
*/ */
private static function validate(Validator $v, string $name, $data) : void{ private static function validate(Validator $v, string $name, $data) : void{
$result = $v->validate($data); $result = $v->validate($data);
@ -116,7 +116,7 @@ class LoginPacket extends DataPacket{
} }
/** /**
* @throws \OutOfBoundsException * @throws BadPacketException
* @throws \UnexpectedValueException * @throws \UnexpectedValueException
*/ */
protected function decodeConnectionRequest() : void{ protected function decodeConnectionRequest() : void{

View File

@ -97,7 +97,7 @@ class NetworkInventoryAction{
* *
* @return $this * @return $this
* @throws \UnexpectedValueException * @throws \UnexpectedValueException
* @throws \OutOfBoundsException * @throws BadPacketException
*/ */
public function read(NetworkBinaryStream $packet) : NetworkInventoryAction{ public function read(NetworkBinaryStream $packet) : NetworkInventoryAction{
$this->sourceType = $packet->getUnsignedVarInt(); $this->sourceType = $packet->getUnsignedVarInt();