Add explicit typecast for $value.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
pull/23144/head
Daniel Kesselberg 6 years ago
parent 64b10f61df
commit 0e3ddf1b27
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
  1. 4
      lib/private/DB/QueryBuilder/QueryBuilder.php
  2. 2
      lib/public/DB/QueryBuilder/IQueryBuilder.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;

@ -651,7 +651,7 @@ interface 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.
* @since 8.2.0

Loading…
Cancel
Save