I kind of solver it,
line 107
public static function expandIpV6(string $sIpV6Address): string
{
$iPos = strpos($sIpV6Address, '::');
if ($iPos !== false) {
// $iInserts = 8 - \count(\preg_split('/:/', $sIpV6Address, null, \PREG_SPLIT_NO_EMPTY));
// Replaced null with -1
$iInserts = 8 - \count(\preg_split('/:/', $sIpV6Address, -1, \PREG_SPLIT_NO_EMPTY));
I dont know if it is correct or not for further code I just saw preg_split documentation.
cheers