Make Debugger::addException() to accept \Throwable

This commit is contained in:
Matias Griese
2019-06-28 13:39:04 +03:00
parent 94494c3c96
commit 053f96dec1

View File

@@ -705,10 +705,10 @@ class Debugger
/**
* Dump exception into the Messages tab of the Debug Bar
*
* @param \Exception $e
* @param \Throwable $e
* @return Debugger
*/
public function addException(\Exception $e)
public function addException(\Throwable $e)
{
if ($this->initialized && $this->enabled) {
if ($this->debugbar) {