/**
* Assigns a value to the specified offset.
*
* @param mixed $offset The offset to assign the value to.
* @param FeedEntry $value The JFeedEntry to set.
*
* @return boolean
*
* @see ArrayAccess::offsetSet()
* @since 3.1.4
* @throws \InvalidArgumentException
*/
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
if (!$value instanceof FeedEntry) {
throw new \InvalidArgumentException(sprintf('%1$s entries must be an instance of Joomla\\CMS\\Feed\\FeedPerson. %2$s given.', \get_class($this), \gettype($value) === 'object' ? \get_class($value) : \gettype($value)));
}
$this->entries[$offset] = $value;
return true;
}