From bce958cc443e1ed298e9d81da48d227dbc091c32 Mon Sep 17 00:00:00 2001 From: MarkRS-UK Date: Fri, 30 Jan 2026 16:27:23 +0000 Subject: [PATCH] Update parameter type in DatabaseQuery values method Correct the values method comment to include the case of supplying a DatabaseQuery object as parameter --- src/DatabaseQuery.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/DatabaseQuery.php b/src/DatabaseQuery.php index b288c4df..395aa83f 100644 --- a/src/DatabaseQuery.php +++ b/src/DatabaseQuery.php @@ -1728,8 +1728,10 @@ public function update($table) * Usage: * $query->values('1,2,3')->values('4,5,6'); * $query->values(array('1,2,3', '4,5,6')); + * $query->values($subQuery); * - * @param array|string $values A single tuple, or array of tuples. + * @param array|string|DatabaseQuery $values A single tuple, or array of tuples, + * or a DatabaseQuery object holding a sub-query. * * @return $this *