aboutsummaryrefslogtreecommitdiff
path: root/lib/models/SimpleCollection.class.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2023-03-10 18:45:14 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2023-03-10 18:45:14 +0000
commit01ebc410441ae59c684381c175217281c2d78edd (patch)
tree75ae7153be87bfc53861abe13cee4ad9f2eab703 /lib/models/SimpleCollection.class.php
parentfef7d9367736f3b33b0318da237ab024841c4f3f (diff)
return type adjustments, fixes #2290
Closes #2290 Merge request studip/studip!1514
Diffstat (limited to 'lib/models/SimpleCollection.class.php')
-rw-r--r--lib/models/SimpleCollection.class.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/models/SimpleCollection.class.php b/lib/models/SimpleCollection.class.php
index 26439b2..11dd296 100644
--- a/lib/models/SimpleCollection.class.php
+++ b/lib/models/SimpleCollection.class.php
@@ -292,9 +292,15 @@ class SimpleCollection extends StudipArrayObject
* Sets the value at the specified index
* ensures the value has ArrayAccess
*
+ * @param mixed $index
+ * @param mixed $newval
+ *
* @see ArrayObject::offsetSet()
* @return void
+ *
+ * @todo Add void return type when Stud.IP requires PHP8 minimal
*/
+ #[ReturnTypeWillChange]
public function offsetSet($index, $newval)
{
if (is_numeric($index)) {
@@ -309,7 +315,10 @@ class SimpleCollection extends StudipArrayObject
*
* @see ArrayObject::offsetUnset()
* @throws InvalidArgumentException
+ *
+ * @todo Add void return type when Stud.IP requires PHP8 minimal
*/
+ #[ReturnTypeWillChange]
public function offsetUnset($index)
{
if ($this->offsetExists($index)) {