Override the offsetSet function to enforce
integral keys only.

@param  mixed $offset
@param  mixed $value

@throws \Exception
436787
public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            $this->_args[count($this->_args)] = $value;
        } else {
            if (is_int($offset)) {
                $this->_args[$offset] = $value;
            } else {
                throw new \Exception('Cannot set offset \''.$offset.'\' of IndexedArray.');
            }
        }
    }
751508
public function offsetSet($offset, $value)
    {
        $offset = is_string($offset) ? trim($offset) : null;
        if (empty($offset)) throw new \InvalidArgumentException('Offset must be a non empty string.');

        $this->data[$offset] = $value;
    }
657513
public function offsetSet($offset, $value): void
    {
        self::validateOffset($offset);
        $this->data[$offset] = $value;
    }
1327652
public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            throw new \Exception('Must supply key to modify arguments in an AssociativeArray.');
        } else {
            $this->_args[$offset] = $value;
        }
    }
126075
public function offsetSet($offset, $value)
    {
        if (is_scalar($offset)) {
            $this->_data[$offset] = $value;
        } else {
            $this->_data[] = $value;
        }
    }
1205495
public function offsetSet($offset, $value)
	{
		if (is_null($offset))
		{
			if( ! $this->isCollection)
			{
				throw new Exception('You need to specify a valid key for model.');
			}

			$this->data[] = $value;
		} 
		else 
		{
			if($this->isCollection)
			{
				$this->data[$offset] = $value;
				return;
			}

			$this->data->{$offset} = $value;
		}
	}
1364346
public function offsetSet($offset, $value)
    {
        $method = 'set' . ucfirst($offset);
        if (method_exists($this, $method)) {
            $this->{$method}($value);
        } else {
            $method = 'set' . self::matchPropertyName($offset);
            if (method_exists($this, $method)) {
                $this->{$method}($value);
            } else {
                $this->unknownProperties[$offset] = $value;
            }
        }
    }
639815
public function offsetSet($offset, $value)
    {
        dd($value);
        if(is_null($offset)) {
            $this->{$this->index} = $value;
            $this->index++;
        } else {
            $this->$offset = $value;
        }
    }
399271
public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            $offset = $this->_integerToStringKey($this->_integerKeysCounter++);
        }

        $this->_putData($offset, $value);
        return $this;
    }
726255
public function offsetSet($offset, $value)
    {
        if ($offset === null) {
            $this->tokens[$this->count++] = $value;
        } else {
            $this->tokens[$offset] = $value;
        }
    }
1350409
public function offsetSet($offset, $value)
    {
        $this->internArray[$offset] = $value;
        return $this->_set($this->getAttributeName(), $this->internArray);
    }
365252
public function offsetSet($offset, $value)
    {
        if (property_exists(get_class($this), $offset)) {
            $property = new ReflectionProperty(get_class($this), $offset);
            if ($property->isPublic()) {
                $this->$offset = $value;
            }

            return;
        }

        $this->$offset = $value;
    }
1013975
public function offsetSet ($offset, $value) {
		$data = & $_SESSION[$this->__name];
        if ($offset === NULL) {
            $data[] = $value;
        } else {
            $data[$offset] = $value;
        }
    }
54903
public function offsetSet($offset, $value)
    {
        if ($offset === null) {
            $this->add($value);
        } else {
            $this->errors[$offset] = $value;
        }
    }
1368686
public function offsetSet($offset, $value)
    {
        foreach ($this->observer as $observer) {
            if (strtolower($observer->getName()) === strtolower($offset)) {
                $this->observer->offsetSet($value);
            }
        }
    }
678189
public function offsetSet($offset, $value)
        {
            $offset = $offset == null ? count($this) : $offset;
            $this->{$this->getContainerName()}[$offset] = $this->onSet($offset, $value);
        }
22345
public function offsetSet($offset, $value)
    {
        $this->generatorToArray();

        if ($offset === null) {
            $this->array[] = $value;
        } else {
            $this->internalSet($offset, $value);
        }
    }