diff --git a/src/DebugBar/DebugBar.php b/src/DebugBar/DebugBar.php index af900a80..b3999b47 100644 --- a/src/DebugBar/DebugBar.php +++ b/src/DebugBar/DebugBar.php @@ -471,21 +471,25 @@ public function getJavascriptRenderer($baseUrl = null, $basePath = null) // -------------------------------------------- // 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");