Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dries-c committed Dec 4, 2024
1 parent 001b83e commit 130b5eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/serializer/BitSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function write(PacketSerializer $out) : void{
$nextShift = $currentShift + self::SHIFT;
if($nextShift >= self::INT_BITS){
$nextShift -= self::INT_BITS;
$bits |= $parts[++$currentIndex] << (self::SHIFT - $nextShift);
$bits |= ($parts[++$currentIndex] ?? 0) << (self::SHIFT - $nextShift);
}
$currentShift = $nextShift;

Expand Down

0 comments on commit 130b5eb

Please sign in to comment.