Fix: implicitly nullable parameter declarations deprecated (#6522)

This commit is contained in:
Akmal Fairuz 2024-11-19 06:54:22 +07:00 committed by GitHub
parent b2aa6396c3
commit faf1e26bac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2037,7 +2037,7 @@ class World implements ChunkManager{
* @param Item[] &$returnedItems Items to be added to the target's inventory (or dropped, if the inventory is full)
* @phpstan-param-out Item $item
*/
public function useBreakOn(Vector3 $vector, Item &$item = null, ?Player $player = null, bool $createParticles = false, array &$returnedItems = []) : bool{
public function useBreakOn(Vector3 $vector, ?Item &$item = null, ?Player $player = null, bool $createParticles = false, array &$returnedItems = []) : bool{
$vector = $vector->floor();
$chunkX = $vector->getFloorX() >> Chunk::COORD_BIT_SIZE;