Add explicit typecast for $value.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2020-10-03 16:33:42 +02:00
parent 64b10f61df
commit 0e3ddf1b27
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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