Skip to content

Commit

Permalink
Merge pull request alexmerz#1 from allandanton/master
Browse files Browse the repository at this point in the history
PHP 8 compatibility
  • Loading branch information
alexmerz authored Nov 1, 2021
2 parents 301c882 + d44c88b commit 33cf52f
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 @@ -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] .= ":";
}

Expand Down

0 comments on commit 33cf52f

Please sign in to comment.