CaseInsensitiveDictionary::offsetSet( $offset,  $value )

Source

 * Set the given item
 *
 * @param string $offset Item name
 * @param string $value Item value
 *
 * @throws \WpOrg\Requests\Exception On attempting to use dictionary as list (`invalidset`)
 */
#[ReturnTypeWillChange]
public function offsetSet($offset, $value) {
	if ($offset === null) {
		throw new Exception('Object is a dictionary, not a list', 'invalidset');

User Contributed Notes

You must log in before being able to contribute a note or feedback.