diff options
author | Mario <mario@mariovavti.com> | 2019-04-25 11:24:09 +0200 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-04-25 11:24:09 +0200 |
commit | f1c07977809ce3221286d53e99f0d91145b1166f (patch) | |
tree | 4c067a3b701ea56f10070c386b26a30f93666eb0 /vendor/sabre/vobject/lib/ElementList.php | |
parent | 701167bc125700efb3e6ce759b85bcb4d36ee42e (diff) | |
download | volse-hubzilla-f1c07977809ce3221286d53e99f0d91145b1166f.tar.gz volse-hubzilla-f1c07977809ce3221286d53e99f0d91145b1166f.tar.bz2 volse-hubzilla-f1c07977809ce3221286d53e99f0d91145b1166f.zip |
Revert "update composer libs"
This reverts commit e779335d060b3a51d6a144d23af4097ae6801473
Diffstat (limited to 'vendor/sabre/vobject/lib/ElementList.php')
-rw-r--r-- | vendor/sabre/vobject/lib/ElementList.php | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/vendor/sabre/vobject/lib/ElementList.php b/vendor/sabre/vobject/lib/ElementList.php index 56058cbd5..959249247 100644 --- a/vendor/sabre/vobject/lib/ElementList.php +++ b/vendor/sabre/vobject/lib/ElementList.php @@ -15,19 +15,23 @@ use LogicException; * @author Evert Pot (http://evertpot.com/) * @license http://sabre.io/license/ Modified BSD License */ -class ElementList extends ArrayIterator -{ +class ElementList extends ArrayIterator { + + /* {{{ ArrayAccess Interface */ /** * Sets an item through ArrayAccess. * - * @param int $offset + * @param int $offset * @param mixed $value + * + * @return void */ - public function offsetSet($offset, $value) - { + function offsetSet($offset, $value) { + throw new LogicException('You can not add new objects to an ElementList'); + } /** @@ -36,11 +40,15 @@ class ElementList extends ArrayIterator * This method just forwards the request to the inner iterator * * @param int $offset + * + * @return void */ - public function offsetUnset($offset) - { + function offsetUnset($offset) { + throw new LogicException('You can not remove objects from an ElementList'); + } /* }}} */ + } |