diff --git a/src/DebugBar/DebugBar.php b/src/DebugBar/DebugBar.php
index <HASH>..<HASH> 100644
--- a/src/DebugBar/DebugBar.php
+++ b/src/DebugBar/DebugBar.php
@@ -471,21 +471,25 @@ class DebugBar implements ArrayAccess
     // --------------------------------------------
     // ArrayAccess implementation
 
+    #[\ReturnTypeWillChange]
     public function offsetSet($key, $value)
     {
         throw new DebugBarException("DebugBar[] is read-only");
     }
 
+    #[\ReturnTypeWillChange]
     public function offsetGet($key)
     {
         return $this->getCollector($key);
     }
 
+    #[\ReturnTypeWillChange]
     public function offsetExists($key)
     {
         return $this->hasCollector($key);
     }
 
+    #[\ReturnTypeWillChange]
     public function offsetUnset($key)
     {
         throw new DebugBarException("DebugBar[] is read-only");
Add #[ReturnTypeWillChange] attribute to suppress deprecation warning… (#<I>)

* Add #[ReturnTypeWillChange] attribute to suppress deprecation warnings and fatal error



Error occurs on php <I> >=



* Same in other 4 methods #[\ReturnTypeWillChange]



Add #[\ReturnTypeWillChange] in other 4 methods to avoid E_DEPRECATED or E_FATAL (php <I> >=)