Merge pull request #634 from beebus/patch-2

Change deprecated pushHandler to prependHandler
This commit is contained in:
Denis Sokolov
2019-07-24 13:05:19 +03:00
committed by GitHub
+2 -2
View File
@@ -50,10 +50,10 @@ $handler->addDataTableCallback('Details', function(\Whoops\Exception\Inspector $
return $data;
});
$run->pushHandler($handler);
$run->prependHandler($handler);
// Example: tag all frames inside a function with their function name
$run->pushHandler(function ($exception, $inspector, $run) {
$run->prependHandler(function ($exception, $inspector, $run) {
$inspector->getFrames()->map(function ($frame) {