1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/17097] Fix PHP 8.2 deprecation warnings

PHPBB3-17097
This commit is contained in:
Micha Ober
2023-04-16 19:48:21 +02:00
parent e0361fe9fe
commit f4af87f718
5 changed files with 26 additions and 14 deletions

View File

@@ -44,21 +44,25 @@ class data extends Event implements \ArrayAccess
return array_intersect_key($this->data, array_flip($keys));
}
#[\ReturnTypeWillChange]
public function offsetExists($offset)
{
return isset($this->data[$offset]);
}
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return isset($this->data[$offset]) ? $this->data[$offset] : null;
}
#[\ReturnTypeWillChange]
public function offsetSet($offset, $value)
{
$this->data[$offset] = $value;
}
#[\ReturnTypeWillChange]
public function offsetUnset($offset)
{
unset($this->data[$offset]);