mirror of
https://github.com/filp/whoops.git
synced 2026-08-31 12:38:10 +00:00
Add automatic removal of any previous output buffering.
This commit is contained in:
@@ -144,6 +144,9 @@ class Run
|
||||
*/
|
||||
public function handleException(Exception $exception)
|
||||
{
|
||||
// Remove any previous output
|
||||
ob_get_level() and ob_end_clean();
|
||||
|
||||
// Walk the registered handlers in the reverse order
|
||||
// they were registered, and pass off the exception
|
||||
$inspector = $this->getInspector($exception);
|
||||
|
||||
Reference in New Issue
Block a user