Skip to content

Commit

Permalink
TypeError support in OnErrorCallback
Browse files Browse the repository at this point in the history
  • Loading branch information
kukulich committed May 20, 2016
1 parent 7ba0178 commit 853f854
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Callbacks/OnErrorCallback.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ class OnErrorCallback extends \Nette\Object

/**
* @param \Nette\Application\Application $application
* @param \Exception $e
* @param \Exception|\Throwable $e
*/
public function __invoke(Application $application, \Exception $e)
public function __invoke(Application $application, $e)
{
if ($e instanceof \Nette\Application\BadRequestException) { // skip 4xx errors
return;
Expand Down

0 comments on commit 853f854

Please sign in to comment.