File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
src/DebugBar/DataCollector Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1919 "require" : {
2020 "php" : " >=5.3.0" ,
2121 "psr/log" : " ^1.0" ,
22- "symfony/var-dumper" : " ^2.6|^3.0"
22+ "symfony/var-dumper" : " ^2.6|^3.0" ,
23+ "symfony/debug" : " ^2.6|^3.0"
2324 },
2425 "require-dev" : {
2526 "phpunit/phpunit" : " ^4.0|^5.0"
Original file line number Diff line number Diff line change 1010
1111namespace DebugBar \DataCollector ;
1212
13+ use Error ;
1314use Exception ;
15+ use Symfony \Component \Debug \Exception \FatalThrowableError ;
1416
1517/**
1618 * Collects info about exceptions
@@ -29,6 +31,9 @@ public function addException(Exception $e)
2931 {
3032 $ this ->exceptions [] = $ e ;
3133 if ($ this ->chainExceptions && $ previous = $ e ->getPrevious ()) {
34+ if ($ previous instanceof Error) {
35+ $ previous = new FatalThrowableError ($ previous );
36+ }
3237 $ this ->addException ($ previous );
3338 }
3439 }
You can’t perform that action at this time.
0 commit comments