Skip to content

Commit

Permalink
PHP errors are exceptions in PHP 7 now too.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Apr 4, 2016
1 parent 502c6bc commit a77c836
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion imp/lib/Application.php
Expand Up @@ -606,8 +606,9 @@ public function download(Horde_Variables $vars)
/* Exception handler. */

/**
* @todo Type hint with Throwable in H6.
*/
public function exceptionHandler(Exception $e)
public function exceptionHandler($e)
{
if ($e instanceof Horde_Imap_Client_Exception) {
$e = new Horde_Exception_AuthenticationFailure(
Expand Down

0 comments on commit a77c836

Please sign in to comment.