mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
NetworkBinaryStream: Use nullable typehint for putVector3Nullable() instead of default value
the parameter is not optional
This commit is contained in:
@ -382,7 +382,7 @@ class NetworkBinaryStream extends BinaryStream{
|
||||
*
|
||||
* @param Vector3|null $vector
|
||||
*/
|
||||
public function putVector3Nullable(Vector3 $vector = null){
|
||||
public function putVector3Nullable(?Vector3 $vector){
|
||||
if($vector){
|
||||
$this->putVector3($vector);
|
||||
}else{
|
||||
|
Reference in New Issue
Block a user