]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(dbal): Doctrine\DBAL\Connection::PARAM_* types are deprecated
authorJoas Schilling <coding@schilljs.com>
Thu, 1 Jun 2023 05:55:37 +0000 (07:55 +0200)
committerJoas Schilling <coding@schilljs.com>
Fri, 6 Oct 2023 13:29:24 +0000 (15:29 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/public/DB/QueryBuilder/IQueryBuilder.php

index 63fdfb6597137e526492a6d4364c00b565ab61de..491ac6d8e2f370f101c4df54b26ff22488c9bc61 100644 (file)
@@ -27,6 +27,7 @@
  */
 namespace OCP\DB\QueryBuilder;
 
+use Doctrine\DBAL\ArrayParameterType;
 use Doctrine\DBAL\Connection;
 use Doctrine\DBAL\ParameterType;
 use OCP\DB\Exception;
@@ -72,11 +73,11 @@ interface IQueryBuilder {
        /**
         * @since 9.0.0
         */
-       public const PARAM_INT_ARRAY = Connection::PARAM_INT_ARRAY;
+       public const PARAM_INT_ARRAY = ArrayParameterType::INTEGER;
        /**
         * @since 9.0.0
         */
-       public const PARAM_STR_ARRAY = Connection::PARAM_STR_ARRAY;
+       public const PARAM_STR_ARRAY = ArrayParameterType::STRING;
 
        /**
         * @since 24.0.0 Indicates how many rows can be deleted at once with MySQL