diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-05-06 08:50:32 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2024-05-06 08:50:32 +0000 |
| commit | c659d71e33cecbe42a7038c281c082f4b5c98414 (patch) | |
| tree | 6bb722750e822599723045082449d2e63034dd6f /lib/models/SimpleCollection.class.php | |
| parent | f8d42374860009922ee68bd9aba63e50f66e77df (diff) | |
adjustments for php8, fixes #4111
Closes #4111
Merge request studip/studip!2956
Diffstat (limited to 'lib/models/SimpleCollection.class.php')
| -rw-r--r-- | lib/models/SimpleCollection.class.php | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/models/SimpleCollection.class.php b/lib/models/SimpleCollection.class.php index 4d77682..6acc10d 100644 --- a/lib/models/SimpleCollection.class.php +++ b/lib/models/SimpleCollection.class.php @@ -299,12 +299,9 @@ class SimpleCollection extends StudipArrayObject * @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) + + public function offsetSet($index, $newval): void { if (is_numeric($index)) { $index = (int) $index; @@ -318,11 +315,8 @@ 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) + public function offsetUnset($index): void { if ($this->offsetExists($index)) { $this->deleted[] = $this->offsetGet($index); |
