aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/DB/Adapter.php
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2024-09-02 10:08:08 +0200
committerGitHub <noreply@github.com>2024-09-02 10:08:08 +0200
commit388f2973b935567460ae76823df01be584b5b279 (patch)
tree3866b7db5170e314d77e81b34c585a15b508fb29 /lib/private/DB/Adapter.php
parentdfcf3132dda2c74ca96a3972ae8d78b4eba55b88 (diff)
downloadnextcloud-server-388f2973b935567460ae76823df01be584b5b279.tar.gz
nextcloud-server-388f2973b935567460ae76823df01be584b5b279.zip
fix: psalm
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Diffstat (limited to 'lib/private/DB/Adapter.php')
-rw-r--r--lib/private/DB/Adapter.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/DB/Adapter.php b/lib/private/DB/Adapter.php
index ad853bf0cf1..b6f098b1e59 100644
--- a/lib/private/DB/Adapter.php
+++ b/lib/private/DB/Adapter.php
@@ -49,7 +49,7 @@ class Adapter {
* @throws Exception
* @since 9.1.0
*/
- public function lockTable(string $tableName): void {
+ public function lockTable(string $tableName) {
$this->conn->beginTransaction();
$this->conn->executeUpdate('LOCK TABLE `' .$tableName . '` IN EXCLUSIVE MODE');
}
@@ -60,7 +60,7 @@ class Adapter {
* @throws Exception
* @since 9.1.0
*/
- public function unlockTable(): void {
+ public function unlockTable() {
$this->conn->commit();
}