mirror of
https://github.com/filp/whoops.git
synced 2026-09-04 14:37:28 +00:00
Merge pull request #634 from beebus/patch-2
Change deprecated pushHandler to prependHandler
This commit is contained in:
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user