From 130b5eb051e197a628bebced7019a014c4608be6 Mon Sep 17 00:00:00 2001 From: Dries C Date: Wed, 4 Dec 2024 09:54:14 +0100 Subject: [PATCH] Fix CI --- src/serializer/BitSet.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/serializer/BitSet.php b/src/serializer/BitSet.php index be28d8b4..1e4a3807 100644 --- a/src/serializer/BitSet.php +++ b/src/serializer/BitSet.php @@ -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;