- Timestamp:
- 05/17/2019 10:57:19 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/sodium_compat/src/Core/Curve25519/Fe.php
r44953 r45344 13 13 { 14 14 /** 15 * @var array 15 * @var array<int, int> 16 16 */ 17 17 protected $container = array(); … … 25 25 * @internal You should not use this directly from another application 26 26 * 27 * @param array $array27 * @param array<int, int> $array 28 28 * @param bool $save_indexes 29 29 * @return self … … 38 38 } 39 39 $array = array_values($array); 40 /** @var array<int, int> $keys */ 40 41 41 42 $obj = new ParagonIE_Sodium_Core_Curve25519_Fe(); … … 55 56 * @internal You should not use this directly from another application 56 57 * 57 * @param mixed$offset58 * @param mixed$value58 * @param int|null $offset 59 * @param int $value 59 60 * @return void 60 61 * @psalm-suppress MixedArrayOffset … … 75 76 * @internal You should not use this directly from another application 76 77 * 77 * @param mixed$offset78 * @param int $offset 78 79 * @return bool 79 80 * @psalm-suppress MixedArrayOffset … … 87 88 * @internal You should not use this directly from another application 88 89 * 89 * @param mixed$offset90 * @param int $offset 90 91 * @return void 91 92 * @psalm-suppress MixedArrayOffset … … 99 100 * @internal You should not use this directly from another application 100 101 * 101 * @param mixed$offset102 * @return mixed|null102 * @param int $offset 103 * @return int 103 104 * @psalm-suppress MixedArrayOffset 104 105 */ 105 106 public function offsetGet($offset) 106 107 { 107 return isset($this->container[$offset]) 108 ? $this->container[$offset] 109 : null; 108 if (!isset($this->container[$offset])) { 109 $this->container[$offset] = 0; 110 } 111 return (int) ($this->container[$offset]); 110 112 } 111 113
Note: See TracChangeset
for help on using the changeset viewer.