From 6b2daf4098ea470f45389c6c578d2a8001f36af5 Mon Sep 17 00:00:00 2001 From: Matthew Batchelder Date: Tue, 14 Nov 2023 07:36:18 -0500 Subject: [PATCH] Add comments in docblocks --- src/DB/QueryBuilder/Concerns/CRUD.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DB/QueryBuilder/Concerns/CRUD.php b/src/DB/QueryBuilder/Concerns/CRUD.php index 40f81ca..269ef5f 100644 --- a/src/DB/QueryBuilder/Concerns/CRUD.php +++ b/src/DB/QueryBuilder/Concerns/CRUD.php @@ -53,11 +53,11 @@ public function update( $data, $format = null ) { * * @since 1.0.8 * - * @param array $data The data to insert or update. + * @param array $data The data to insert or update. * @param array $match The columns to match on. - * @param string|null $format + * @param string|array|null $format Array of formats to be mapped to each value in $data. If string, the format will be used for all values in $data. * - * @return false|int + * @return false|int Number of rows updated/inserted, false on error. */ public function upsert( $data, $match = [], $format = null ) { // Build the where clause(s).