mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-07-26 03:01:23 +02:00
@@ -155,7 +155,7 @@ class AggregatedCollector implements DataCollectorInterface, ArrayAccess
|
|||||||
* @param mixed $value
|
* @param mixed $value
|
||||||
* @throws DebugBarException
|
* @throws DebugBarException
|
||||||
*/
|
*/
|
||||||
public function offsetSet($key, $value)
|
public function offsetSet($key, $value): void
|
||||||
{
|
{
|
||||||
throw new DebugBarException("AggregatedCollector[] is read-only");
|
throw new DebugBarException("AggregatedCollector[] is read-only");
|
||||||
}
|
}
|
||||||
@@ -164,6 +164,8 @@ class AggregatedCollector implements DataCollectorInterface, ArrayAccess
|
|||||||
* @param mixed $key
|
* @param mixed $key
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#[\ReturnTypeWillChange]
|
||||||
public function offsetGet($key)
|
public function offsetGet($key)
|
||||||
{
|
{
|
||||||
return $this->collectors[$key];
|
return $this->collectors[$key];
|
||||||
@@ -173,7 +175,7 @@ class AggregatedCollector implements DataCollectorInterface, ArrayAccess
|
|||||||
* @param mixed $key
|
* @param mixed $key
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function offsetExists($key)
|
public function offsetExists($key): bool
|
||||||
{
|
{
|
||||||
return isset($this->collectors[$key]);
|
return isset($this->collectors[$key]);
|
||||||
}
|
}
|
||||||
@@ -182,7 +184,7 @@ class AggregatedCollector implements DataCollectorInterface, ArrayAccess
|
|||||||
* @param mixed $key
|
* @param mixed $key
|
||||||
* @throws DebugBarException
|
* @throws DebugBarException
|
||||||
*/
|
*/
|
||||||
public function offsetUnset($key)
|
public function offsetUnset($key): void
|
||||||
{
|
{
|
||||||
throw new DebugBarException("AggregatedCollector[] is read-only");
|
throw new DebugBarException("AggregatedCollector[] is read-only");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user