Signed-off-by: Joas Schilling <coding@schilljs.com>tags/v23.0.0beta1
@@ -425,11 +425,11 @@ class ExpressionBuilder implements IExpressionBuilder { | |||
/** | |||
* Returns a IQueryFunction that casts the column to the given type | |||
* | |||
* @param string $column | |||
* @param string|IQueryFunction $column | |||
* @param mixed $type One of IQueryBuilder::PARAM_* | |||
* @return IQueryFunction | |||
*/ | |||
public function castColumn(string $column, $type): IQueryFunction { | |||
public function castColumn($column, $type): IQueryFunction { | |||
return new QueryFunction( | |||
$this->helper->quoteColumnName($column) | |||
); |
@@ -161,11 +161,11 @@ class OCIExpressionBuilder extends ExpressionBuilder { | |||
/** | |||
* Returns a IQueryFunction that casts the column to the given type | |||
* | |||
* @param string $column | |||
* @param string|IQueryFunction $column | |||
* @param mixed $type One of IQueryBuilder::PARAM_* | |||
* @return IQueryFunction | |||
*/ | |||
public function castColumn(string $column, $type): IQueryFunction { | |||
public function castColumn($column, $type): IQueryFunction { | |||
if ($type === IQueryBuilder::PARAM_STR) { | |||
$column = $this->helper->quoteColumnName($column); | |||
return new QueryFunction('to_char(' . $column . ')'); |
@@ -33,7 +33,7 @@ class PgSqlExpressionBuilder extends ExpressionBuilder { | |||
/** | |||
* Returns a IQueryFunction that casts the column to the given type | |||
* | |||
* @param string $column | |||
* @param string|IQueryFunction $column | |||
* @param mixed $type One of IQueryBuilder::PARAM_* | |||
* @return IQueryFunction | |||
*/ |
@@ -431,7 +431,7 @@ interface IExpressionBuilder { | |||
/** | |||
* Returns a IQueryFunction that casts the column to the given type | |||
* | |||
* @param string $column | |||
* @param string|IQueryFunction $column | |||
* @param mixed $type One of IQueryBuilder::PARAM_* | |||
* @return IQueryFunction | |||
* @since 9.0.0 | |||
@@ -439,5 +439,5 @@ interface IExpressionBuilder { | |||
* @psalm-taint-sink sql $column | |||
* @psalm-taint-sink sql $type | |||
*/ | |||
public function castColumn(string $column, $type): IQueryFunction; | |||
public function castColumn($column, $type): IQueryFunction; | |||
} |