Skip to content

Commit 0e3ddf1

Browse files
committed
Add explicit typecast for $value.
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
1 parent 64b10f6 commit 0e3ddf1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/private/DB/QueryBuilder/QueryBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -869,14 +869,14 @@ public function addGroupBy(...$groupBys) {
869869
* </code>
870870
*
871871
* @param string $column The column into which the value should be inserted.
872-
* @param string $value The value that should be inserted into the column.
872+
* @param IParameter|string $value The value that should be inserted into the column.
873873
*
874874
* @return $this This QueryBuilder instance.
875875
*/
876876
public function setValue($column, $value) {
877877
$this->queryBuilder->setValue(
878878
$this->helper->quoteColumnName($column),
879-
$value
879+
(string) $value
880880
);
881881

882882
return $this;

lib/public/DB/QueryBuilder/IQueryBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ public function addGroupBy(...$groupBy);
651651
* </code>
652652
*
653653
* @param string $column The column into which the value should be inserted.
654-
* @param string $value The value that should be inserted into the column.
654+
* @param IParameter|string $value The value that should be inserted into the column.
655655
*
656656
* @return $this This QueryBuilder instance.
657657
* @since 8.2.0

0 commit comments

Comments
 (0)