diff options
author | Joas Schilling <coding@schilljs.com> | 2021-07-07 14:20:24 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-07-07 14:20:24 +0200 |
commit | aae16c21e66847cd12cbf3084a102b923a7717ce (patch) | |
tree | 865ae8349e342aefc00c29903b841ec4fdca7869 /lib/public/DB | |
parent | 11d21e5f5c9e449a75ba24be9c018980496339e8 (diff) | |
download | nextcloud-server-aae16c21e66847cd12cbf3084a102b923a7717ce.tar.gz nextcloud-server-aae16c21e66847cd12cbf3084a102b923a7717ce.zip |
Allow casting query functions as well
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/DB')
-rw-r--r-- | lib/public/DB/QueryBuilder/IExpressionBuilder.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/public/DB/QueryBuilder/IExpressionBuilder.php b/lib/public/DB/QueryBuilder/IExpressionBuilder.php index b3dbf564e35..77701240d51 100644 --- a/lib/public/DB/QueryBuilder/IExpressionBuilder.php +++ b/lib/public/DB/QueryBuilder/IExpressionBuilder.php @@ -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; } |