public function offsetSet($offset, $value) { $this->filters[$offset === null ? count($this->filters) : $offset] = $value; }