From 2c3773be2aff7911fd2f657de270ac17e1256950 Mon Sep 17 00:00:00 2001 From: addshore Date: Thu, 27 Aug 2015 09:55:53 +0200 Subject: [PATCH] Add @throws tag to Database::insert This was already documented but not with @throws Change-Id: Ib55c2efb9993c5d939fab1ed5d6ade3fc277902f --- includes/db/Database.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/db/Database.php b/includes/db/Database.php index aa8e2a0028..4d1b1c0f04 100644 --- a/includes/db/Database.php +++ b/includes/db/Database.php @@ -1901,9 +1901,6 @@ abstract class DatabaseBase implements IDatabase { * This causes a multi-row INSERT on DBMSs that support it. The keys in * each subarray must be identical to each other, and in the same order. * - * Usually throws a DBQueryError on failure. If errors are explicitly ignored, - * returns success. - * * $options is an array of options, with boolean options encoded as values * with numeric keys, in the same style as $options in * DatabaseBase::select(). Supported options are: @@ -1919,6 +1916,9 @@ abstract class DatabaseBase implements IDatabase { * @param string $fname Calling function name (use __METHOD__) for logs/profiling * @param array $options Array of options * + * @throws DBQueryError Usually throws a DBQueryError on failure. If errors are explicitly ignored, + * returns success. + * * @return bool */ public function insert( $table, $a, $fname = __METHOD__, $options = array() ) { -- 2.20.1