Added some missing typehints

This commit is contained in:
Dylan K. Taylor
2018-06-10 17:18:55 +01:00
parent 89643ff9af
commit c4c6c58615
19 changed files with 27 additions and 27 deletions

View File

@ -93,7 +93,7 @@ class SubChunk implements SubChunkInterface{
}
}
public function setBlock(int $x, int $y, int $z, $id = null, $data = null) : bool{
public function setBlock(int $x, int $y, int $z, ?int $id = null, ?int $data = null) : bool{
$i = ($x << 8) | ($z << 4) | $y;
$changed = false;
if($id !== null){