Skip to content

Commit e5f5f06

Browse files
Merge pull request #45122 from nextcloud/techdebt/noid/remove-temporary-executeUpdate
fix(querybuilder): Remove temporary internal method executeUpdate()
2 parents cf319df + 90ba7db commit e5f5f06

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

lib/private/DB/QueryBuilder/QueryBuilder.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -302,21 +302,6 @@ public function executeQuery(): IResult {
302302
throw new \RuntimeException('Invalid return type for query');
303303
}
304304

305-
/**
306-
* Monkey-patched compatibility layer for apps that were adapted for Nextcloud 22 before
307-
* the first beta, where executeStatement was named executeUpdate.
308-
*
309-
* Static analysis should catch those misuses, but until then let's try to keep things
310-
* running.
311-
*
312-
* @internal
313-
* @deprecated
314-
* @todo drop ASAP
315-
*/
316-
public function executeUpdate(): int {
317-
return $this->executeStatement();
318-
}
319-
320305
public function executeStatement(): int {
321306
if ($this->getType() === \Doctrine\DBAL\Query\QueryBuilder::SELECT) {
322307
throw new \RuntimeException('Invalid query type, expected INSERT, DELETE or UPDATE statement');

0 commit comments

Comments
 (0)