mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-07-28 04:00:43 +02:00
This commit is contained in:
committed by
Barry vd. Heuvel
parent
41d982b5cf
commit
91b61a53bb
@@ -10,7 +10,9 @@
|
||||
|
||||
namespace DebugBar\DataCollector;
|
||||
|
||||
use Error;
|
||||
use Exception;
|
||||
use Symfony\Component\Debug\Exception\FatalThrowableError;
|
||||
|
||||
/**
|
||||
* Collects info about exceptions
|
||||
@@ -29,6 +31,9 @@ class ExceptionsCollector extends DataCollector implements Renderable
|
||||
{
|
||||
$this->exceptions[] = $e;
|
||||
if ($this->chainExceptions && $previous = $e->getPrevious()) {
|
||||
if ($previous instanceof Error) {
|
||||
$previous = new FatalThrowableError($previous);
|
||||
}
|
||||
$this->addException($previous);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user