summaryrefslogtreecommitdiffstats
path: root/lib/private/DB/QueryBuilder
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2020-10-03 16:33:42 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2020-10-03 17:15:14 +0200
commit0e3ddf1b27eb84e0492e5db901dbf0efd4cfa3ef (patch)
treedc3107974fb63f789db778437b246c567ccdeb83 /lib/private/DB/QueryBuilder
parent64b10f61df7e1f5dd7d4f985f016b0e9122d4ba8 (diff)
downloadnextcloud-server-0e3ddf1b27eb84e0492e5db901dbf0efd4cfa3ef.tar.gz
nextcloud-server-0e3ddf1b27eb84e0492e5db901dbf0efd4cfa3ef.zip
Add explicit typecast for $value.
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib/private/DB/QueryBuilder')
-rw-r--r--lib/private/DB/QueryBuilder/QueryBuilder.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/DB/QueryBuilder/QueryBuilder.php b/lib/private/DB/QueryBuilder/QueryBuilder.php
index 0ebcf4425dc..0e3f6f7daec 100644
--- a/lib/private/DB/QueryBuilder/QueryBuilder.php
+++ b/lib/private/DB/QueryBuilder/QueryBuilder.php
@@ -869,14 +869,14 @@ class QueryBuilder implements IQueryBuilder {
* </code>
*
* @param string $column The column into which the value should be inserted.
- * @param string $value The value that should be inserted into the column.
+ * @param IParameter|string $value The value that should be inserted into the column.
*
* @return $this This QueryBuilder instance.
*/
public function setValue($column, $value) {
$this->queryBuilder->setValue(
$this->helper->quoteColumnName($column),
- $value
+ (string) $value
);
return $this;