From c64ed4ddcc4ebd1dd63e27c166dd042462e564bd Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Wed, 15 Jul 2015 20:54:48 +0530 Subject: [PATCH] Mark variable types Signed-off-by: Madhura Jayaratne --- libraries/Error_Handler.class.php | 6 +++--- libraries/error_report.lib.php | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libraries/Error_Handler.class.php b/libraries/Error_Handler.class.php index 3cc06ac0cd..3a4c028b4e 100644 --- a/libraries/Error_Handler.class.php +++ b/libraries/Error_Handler.class.php @@ -25,7 +25,7 @@ class PMA_Error_Handler /** * holds errors to be displayed or reported later ... * - * @var array of PMA_Error + * @var PMA_Error[] */ protected $errors = array(); @@ -86,7 +86,7 @@ class PMA_Error_Handler /** * returns array with all errors * - * @return array PMA_Error_Handler::$_errors + * @return PMA_Error[] */ protected function getErrors() { @@ -98,7 +98,7 @@ class PMA_Error_Handler * returns the errors occurred in the current run only. * Does not include the errors save din the SESSION * - * @return array of current errors + * @return PMA_Error[] */ public function getCurrentErrors() { diff --git a/libraries/error_report.lib.php b/libraries/error_report.lib.php index 619886f72a..4ab60d7de2 100644 --- a/libraries/error_report.lib.php +++ b/libraries/error_report.lib.php @@ -102,6 +102,7 @@ function PMA_getReportData($exception_type = 'js') return array(); } foreach ($_SESSION['prev_errors'] as $errorObj) { + /* @var $errorObj PMA_Error */ if ($errorObj->getLine() && $errorObj->getType() && $errorObj->getNumber() != E_USER_WARNING