/** * @param string $offset * @param string $value */ public function offsetSet($offset, $value) { parent::offsetSet(trim($offset), $value); }