From: Mikael Nordfeldth Date: Sun, 19 Apr 2015 22:26:16 +0000 (+0200) Subject: Better typing in lib/framework.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f9f7c4675166d46afbe29132d4d293bc758a68e2;p=quix0rs-gnu-social.git Better typing in lib/framework.php --- diff --git a/lib/framework.php b/lib/framework.php index b71f365c24..4ec8b083e0 100644 --- a/lib/framework.php +++ b/lib/framework.php @@ -144,7 +144,7 @@ require_once INSTALLDIR.'/lib/action.php'; require_once INSTALLDIR.'/lib/mail.php'; //set PEAR error handling to use regular PHP exceptions -function PEAR_ErrorToPEAR_Exception($err) +function PEAR_ErrorToPEAR_Exception(PEAR_Error $err) { //DB_DataObject throws error when an empty set would be returned //That behavior is weird, and not how the rest of StatusNet works.