diff --git a/libraries/legacy/error/error.php b/libraries/legacy/error/error.php index 0f786b2644b73..8339f9bc29e0b 100644 --- a/libraries/legacy/error/error.php +++ b/libraries/legacy/error/error.php @@ -784,14 +784,14 @@ public static function handleCallback(&$error, $options) /** * Display a custom error page and exit gracefully * - * @param JException &$error Exception object + * @param JException $error Exception object * * @return void * * @deprecated 12.1 * @since 11.1 */ - public static function customErrorPage(&$error) + public static function customErrorPage($error) { JLog::add('JError::customErrorPage() is deprecated, use JErrorPage::render() instead.', JLog::WARNING, 'deprecated'); diff --git a/plugins/system/redirect/redirect.php b/plugins/system/redirect/redirect.php index 9403a261e11ad..e29451901fd6c 100644 --- a/plugins/system/redirect/redirect.php +++ b/plugins/system/redirect/redirect.php @@ -56,13 +56,13 @@ public function __construct(&$subject, $config) /** * Method to handle an error condition from JError. * - * @param JException &$error The JException object to be handled. + * @param JException $error The JException object to be handled. * * @return void * * @since 1.6 */ - public static function handleError(JException &$error) + public static function handleError(JException $error) { self::doErrorHandling($error); }