wp/wp-includes/sodium_compat/src/PHP52/SplFixedArray.php
changeset 18 be944660c56a
parent 16 a86126ab1dd4
equal deleted inserted replaced
17:34716fd837a4 18:be944660c56a
   100      * @param string|int $index
   100      * @param string|int $index
   101      * @return mixed
   101      * @return mixed
   102      */
   102      */
   103     public function offsetGet($index)
   103     public function offsetGet($index)
   104     {
   104     {
       
   105         /** @psalm-suppress MixedReturnStatement */
   105         return $this->internalArray[(int) $index];
   106         return $this->internalArray[(int) $index];
   106     }
   107     }
   107 
   108 
   108     /**
   109     /**
   109      * @param string|int $index
   110      * @param string|int $index
   140      * @return mixed The current element value.
   141      * @return mixed The current element value.
   141      * @since 5.3.0
   142      * @since 5.3.0
   142      */
   143      */
   143     public function current()
   144     public function current()
   144     {
   145     {
       
   146         /** @psalm-suppress MixedReturnStatement */
   145         return current($this->internalArray);
   147         return current($this->internalArray);
   146     }
   148     }
   147 
   149 
   148     /**
   150     /**
   149      * Return current array index
   151      * Return current array index