Skip to content

Commit 33cf52f

Browse files
authored
Merge pull request alexmerz#1 from allandanton/master
PHP 8 compatibility
2 parents 301c882 + d44c88b commit 33cf52f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Net/IPv6.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -853,10 +853,10 @@ public static function SplitV64($ip, $uncompress = true)
853853
return array("", $ip);
854854
}
855855

856-
$ip{$pos} = '_';
856+
$ip[$pos] = '_';
857857
$ipPart = explode('_', $ip);
858858

859-
if ($ip{$pos-1} === ":") {
859+
if ($ip[$pos-1] === ":") {
860860
$ipPart[0] .= ":";
861861
}
862862

0 commit comments

Comments
 (0)