]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(querybuilder): Remove temporary internal method executeUpdate() 45122/head
authorJoas Schilling <coding@schilljs.com>
Tue, 30 Apr 2024 13:13:12 +0000 (15:13 +0200)
committerJoas Schilling <coding@schilljs.com>
Tue, 30 Apr 2024 13:13:12 +0000 (15:13 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/DB/QueryBuilder/QueryBuilder.php

index d78cf50e319e06af5207f518c64719bde7397e0b..3fc56dd580db1bd05a95b5eccce9bf447831f4e9 100644 (file)
@@ -302,21 +302,6 @@ class QueryBuilder implements IQueryBuilder {
                throw new \RuntimeException('Invalid return type for query');
        }
 
-       /**
-        * Monkey-patched compatibility layer for apps that were adapted for Nextcloud 22 before
-        * the first beta, where executeStatement was named executeUpdate.
-        *
-        * Static analysis should catch those misuses, but until then let's try to keep things
-        * running.
-        *
-        * @internal
-        * @deprecated
-        * @todo drop ASAP
-        */
-       public function executeUpdate(): int {
-               return $this->executeStatement();
-       }
-
        public function executeStatement(): int {
                if ($this->getType() === \Doctrine\DBAL\Query\QueryBuilder::SELECT) {
                        throw new \RuntimeException('Invalid query type, expected INSERT, DELETE or UPDATE statement');