mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-14 23:45:34 +00:00
NetworkBinaryStream: Use nullable typehint for putVector3Nullable() instead of default value
the parameter is not optional
This commit is contained in:
parent
95d42b9907
commit
2579438b84
@ -382,7 +382,7 @@ class NetworkBinaryStream extends BinaryStream{
|
|||||||
*
|
*
|
||||||
* @param Vector3|null $vector
|
* @param Vector3|null $vector
|
||||||
*/
|
*/
|
||||||
public function putVector3Nullable(Vector3 $vector = null){
|
public function putVector3Nullable(?Vector3 $vector){
|
||||||
if($vector){
|
if($vector){
|
||||||
$this->putVector3($vector);
|
$this->putVector3($vector);
|
||||||
}else{
|
}else{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user