From d44c88b2ffa08b2eae2f9fed9d8b61af66cfef19 Mon Sep 17 00:00:00 2001 From: allandanton <33146694+allandanton@users.noreply.github.com> Date: Sat, 30 Oct 2021 16:36:59 +0200 Subject: [PATCH] PHP 8 compatibility --- Net/IPv6.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Net/IPv6.php b/Net/IPv6.php index bafb668..1dd7f00 100644 --- a/Net/IPv6.php +++ b/Net/IPv6.php @@ -853,10 +853,10 @@ public static function SplitV64($ip, $uncompress = true) return array("", $ip); } - $ip{$pos} = '_'; + $ip[$pos] = '_'; $ipPart = explode('_', $ip); - if ($ip{$pos-1} === ":") { + if ($ip[$pos-1] === ":") { $ipPart[0] .= ":"; }