Skip to content

Commit

Permalink
Merge pull request #1 from LINXNet/bugfix/php8-deprecation
Browse files Browse the repository at this point in the history
Fix deprecation with core php array access
  • Loading branch information
dant89 committed Feb 6, 2023
2 parents f6fb521 + f0eaef9 commit 7708ea0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Net/IPv6.php
Original file line number Diff line number Diff line change
Expand Up @@ -848,10 +848,10 @@ 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] .= ":";
}

Expand Down

0 comments on commit 7708ea0

Please sign in to comment.