{@inheritdoc} Best place to ensure the logic is encapsulated in a single place

@param mixed $offset
@param mixed $value
@return void

Type hint not possible due to upstream method signature
352822
public function offsetSet($offset, $value) : void
    {
        if ($offset === 'X509Certificate') {
            $value = preg_replace('~\s+~', '', $value);
        }

        parent::offsetSet($offset, $value);
    }
799583
public function offsetSet($offset, $value)
    {
        $value = trim($value);

        if ( ! empty($value)) {
            parent::offsetSet($offset, $value);
        }
    }
1322093
public function set($offset, $value = null)
    {
        if ($value === null) {
            $this->assertInstance($offset);
        } else {
            $this->assertInstance($value);
        }

        if ($offset instanceof CookieInterface) {
            $value = $offset;
            $offset = $offset->name();
        }

        return parent::set($offset, $value);
    }
798611
public function offsetSet($offset, $value)
    {
        $this->configRaw[$offset] = $value;
        if (isset($this->childConfig[$offset])) {
            unset($this->childConfig[$offset]);
        }

    }
785065
public function offsetSet($offset, $value)
    {
        if ( ! $value instanceof Closure) {
            $value = function() use ($value) {
                return $value;
            };
        }
        $this->bind($offset, $value);
    }
976111
public function offsetSet($offset, $value) {

		if (is_null($offset)) {
			throw new \InvalidArgumentException('Invalid NULL offset. Only named offsets allowed.');
		}
		$this->values[$offset] = $value;

	}
243674
public function offsetSet($offset, $value)
    {
        if ($offset == self::QUERY) {
            $parameters = [];
            parse_str($value, $parameters);
            $value = $parameters;
        }
        $this->set($offset, $value);
    }
306805
public function offsetSet($offset, $value)
	{
		if ($offset === null)
		{
			// $list[] = 'foo' maps to $list->append('foo')
			$this->append($value);
		}
		else
		{
			// Use the default implementation
			parent::offsetSet($offset, $value);
		}
	}
857011
public function offsetSet($offset, $value)
    {
        if ($this->allowNullValue === true || null !== $value) {
            if (null === $offset) {
                $this->collection[] = $this->resolveString($value, __METHOD__);
            } else {
                $this->collection[$offset] = $this->resolveString($value, __METHOD__);
            }
        }
    }
1235026
public function offsetSet($offset, $value)
    {
        if ($offset === null) {
            $this->values[] = $value;

            return;
        }

        $keys = explode($this->keySeparator, $offset);

        $keyCount = count($keys);

        $array = &$this->values;

        while ($keyCount > 1) {
            $key = array_shift($keys);

            if (!isset($array[$key]) || !is_array($array[$key])) {
                $array[$key] = [];
            }

            $array = &$array[$key];

            --$keyCount;
        }

        $array[array_shift($keys)] = $value;
    }
539285
public function offsetSet($offset, $value) {
        parent::offsetSet($offset, $value);
        $this->initChild($offset, $value, TRUE);
    }
299182
public function offsetSet($offset, $value)
    {
        if (!is_int($offset) && $exist = array_search($offset, self::$reverseLookup)) {
            $offset = $exist;
        }

        self::$references[$offset] = $value;
    }
457773
public function offsetSet($offset, $value) {
            if (is_null($offset)) {
                $this->custom[] = $value;
                $this->merge();
            } else {
                $this->set($offset, $value);
            }
        }
460293
public function offsetSet($offset, $value): void
    {
        $this->resolver->value(function ($value, $offset): void {

            if (is_null($offset)) {
                $this->items->push($value);

                return;
            }

            $this->items->set($offset, $value);
        }, $value, $offset);
    }
1013975
public function offsetSet ($offset, $value) {
		$data = & $_SESSION[$this->__name];
        if ($offset === NULL) {
            $data[] = $value;
        } else {
            $data[$offset] = $value;
        }
    }
788766
public function offsetSet($offset, $value)
    {
        $this->_offsetSet($offset, $value, $this->delimiter);
        $this->process->writeLog("_offsetSet", [$offset, $value, $this->delimiter]);
    }
884560
public function offsetSet($offset, $value)
        {
            $get = $this->chaining
                ? 'chain'
                : 'current';
            $this->$get[$offset] = $value;
        }