wp-includes/sodium_compat/src/Core/Curve25519/Fe.php:31$array$save_indexesbooloptionalnullself public static function fromArray($array, $save_indexes = null) { $count = count($array); if ($save_indexes) { $keys = array_keys($array); } else { $keys = range(0, $count - 1); } $array = array_values($array); /** @var array<int, int> $keys */ $obj = new ParagonIE_Sodium_Core_Curve25519_Fe(); if ($save_indexes) { for ($i = 0; $i < $count; ++$i) { $obj->offsetSet($keys[$i], $array[$i]); } } else { for ($i = 0; $i < $count; ++$i) { $obj->offsetSet($i, $array[$i]); } } return $obj; }2 changes between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$save_indexes removed.verified against source$array retyped from untyped to array.verified against sourcesrc/wp-includes/sodium_compat/src/Core/Curve25519/Fe.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.