You are here

public function SplFixedArray::offsetSet in Automatic Updates 8

Same name and namespace in other branches
  1. 7 vendor/paragonie/sodium_compat/src/PHP52/SplFixedArray.php \SplFixedArray::offsetSet()

@psalm-suppress MixedAssignment

Parameters

string|int $index:

mixed $newval:

File

vendor/paragonie/sodium_compat/src/PHP52/SplFixedArray.php, line 113

Class

SplFixedArray
The SplFixedArray class provides the main functionalities of array. The main differences between a SplFixedArray and a normal PHP array is that the SplFixedArray is of fixed length and allows only integers within the range as indexes. The advantage is…

Code

public function offsetSet($index, $newval) {
  $this->internalArray[(int) $index] = $newval;
}