snowair / phalcon-debugbar

A powerful debug and profilers tool for the Phalcon Framework
MIT License
162 stars 49 forks source link

Unable to add \Throwable using the PhalconDebug helper #52

Closed alexbusu closed 5 years ago

alexbusu commented 6 years ago

The method \PhalconDebug::addException accepts \Exception as argument although further are accepted Trowables as well. https://github.com/snowair/phalcon-debugbar/blob/master/src/Debug.php#L188 and https://github.com/snowair/phalcon-debugbar/blob/master/src/PhalconDebugbar.php#L507

It should accept \Throwable, as the \Exception is a subclass of the former.

snowair commented 5 years ago

Thank you for your PR