Skip to content

Commit faf1e26

Browse files
authored
Fix: implicitly nullable parameter declarations deprecated (#6522)
1 parent b2aa639 commit faf1e26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/world/World.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2037,7 +2037,7 @@ public function dropExperience(Vector3 $pos, int $amount) : array{
20372037
* @param Item[] &$returnedItems Items to be added to the target's inventory (or dropped, if the inventory is full)
20382038
* @phpstan-param-out Item $item
20392039
*/
2040-
public function useBreakOn(Vector3 $vector, Item &$item = null, ?Player $player = null, bool $createParticles = false, array &$returnedItems = []) : bool{
2040+
public function useBreakOn(Vector3 $vector, ?Item &$item = null, ?Player $player = null, bool $createParticles = false, array &$returnedItems = []) : bool{
20412041
$vector = $vector->floor();
20422042

20432043
$chunkX = $vector->getFloorX() >> Chunk::COORD_BIT_SIZE;

0 commit comments

Comments
 (0)