diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-03-10 18:45:14 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2023-03-10 18:45:14 +0000 |
| commit | 01ebc410441ae59c684381c175217281c2d78edd (patch) | |
| tree | 75ae7153be87bfc53861abe13cee4ad9f2eab703 /lib/classes/sidebar/LinkElement.php | |
| parent | fef7d9367736f3b33b0318da237ab024841c4f3f (diff) | |
return type adjustments, fixes #2290
Closes #2290
Merge request studip/studip!1514
Diffstat (limited to 'lib/classes/sidebar/LinkElement.php')
| -rw-r--r-- | lib/classes/sidebar/LinkElement.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/classes/sidebar/LinkElement.php b/lib/classes/sidebar/LinkElement.php index 8b20dbe..8e3e270 100644 --- a/lib/classes/sidebar/LinkElement.php +++ b/lib/classes/sidebar/LinkElement.php @@ -247,21 +247,40 @@ class LinkElement extends WidgetElement implements ArrayAccess // Array access for attributes + /** + * @todo Add bool return type when Stud.IP requires PHP8 minimal + */ + #[ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->attributes[$offset]); } + /** + * @param $offset + * @return mixed + * + * @todo Add mixed return type when Stud.IP requires PHP8 minimal + */ + #[ReturnTypeWillChange] public function offsetGet($offset) { return $this->attributes[$offset]; } + /** + * @todo Add void return type when Stud.IP requires PHP8 minimal + */ + #[ReturnTypeWillChange] public function offsetSet($offset, $value) { $this->attributes[$offset] = $value; } + /** + * @todo Add void return type when Stud.IP requires PHP8 minimal + */ + #[ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->attributes[$offset]); |
