mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-07-25 18:51:42 +02:00
Update ExceptionsCollector.php
This commit is contained in:
@@ -15,7 +15,7 @@ use Exception;
|
|||||||
/**
|
/**
|
||||||
* Collects info about exceptions
|
* Collects info about exceptions
|
||||||
*/
|
*/
|
||||||
class ExceptionsCollector extends DataCollector implements Renderable
|
class ExceptionsCollector extends DataCollector implements Renderable, Resettable
|
||||||
{
|
{
|
||||||
protected $exceptions = array();
|
protected $exceptions = array();
|
||||||
protected $chainExceptions = false;
|
protected $chainExceptions = false;
|
||||||
@@ -53,6 +53,11 @@ class ExceptionsCollector extends DataCollector implements Renderable
|
|||||||
return $this->exceptions;
|
return $this->exceptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function reset()
|
||||||
|
{
|
||||||
|
$this->exceptions = array();
|
||||||
|
}
|
||||||
|
|
||||||
public function collect()
|
public function collect()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
|
Reference in New Issue
Block a user