Skip to content

Commit

Permalink
Fix: implicitly nullable parameter declarations deprecated (#6522)
Browse files Browse the repository at this point in the history
  • Loading branch information
AkmalFairuz authored Nov 18, 2024
1 parent b2aa639 commit faf1e26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/world/World.php
Original file line number Diff line number Diff line change
Expand Up @@ -2037,7 +2037,7 @@ public function dropExperience(Vector3 $pos, int $amount) : array{
* @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;
Expand Down

0 comments on commit faf1e26

Please sign in to comment.