From ac552afedc634eaf56da48d4eccc12fae5259c6a Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Wed, 4 Jan 2023 21:12:27 +0300 Subject: [PATCH] php8 fix --- src/utils/Utils.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/Utils.php b/src/utils/Utils.php index 2995fa8b..b9f3a859 100644 --- a/src/utils/Utils.php +++ b/src/utils/Utils.php @@ -711,6 +711,7 @@ class Utils{ public static function writeLong($value){ $x = ""; + $value = (string) $value; if(!is_float($value)){ if(strval($value[0] == null ? '' : $value[0]) === "-"){ $negative = true;