Make some forced-optional nullable parameters non-optional, PHP 7.1 style

these parameters did not make any sense to be optional, but were forced to be this way because of the way nullable types worked before 7.1.
This commit is contained in:
Dylan K. Taylor
2019-02-22 12:53:07 +00:00
parent a5c260352d
commit 73a565355b
13 changed files with 13 additions and 13 deletions

View File

@ -2303,7 +2303,7 @@ class Level implements ChunkManager, Metadatable{
* @param Chunk|null $chunk
* @param bool $deleteEntitiesAndTiles Whether to delete entities and tiles on the old chunk, or transfer them to the new one
*/
public function setChunk(int $chunkX, int $chunkZ, Chunk $chunk = null, bool $deleteEntitiesAndTiles = true){
public function setChunk(int $chunkX, int $chunkZ, ?Chunk $chunk, bool $deleteEntitiesAndTiles = true){
if($chunk === null){
return;
}