Skip to content

Commit 7708ea0

Browse files
authored
Merge pull request #1 from LINXNet/bugfix/php8-deprecation
Fix deprecation with core php array access
2 parents f6fb521 + f0eaef9 commit 7708ea0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Net/IPv6.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -848,10 +848,10 @@ function SplitV64($ip, $uncompress = true)
848848
return array("", $ip);
849849
}
850850

851-
$ip{$pos} = '_';
851+
$ip[$pos] = '_';
852852
$ipPart = explode('_', $ip);
853853

854-
if ($ip{$pos-1} === ":") {
854+
if ($ip[$pos-1] === ":") {
855855
$ipPart[0] .= ":";
856856
}
857857

0 commit comments

Comments
 (0)