diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2024-09-02 10:19:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-02 10:19:25 +0200 |
commit | 8e6e7976d2ebc6a2f255ff3ff9ea27addd97c5fa (patch) | |
tree | a52848326514a6ca4133bbdaf5f39b92698c58c5 /lib | |
parent | 388f2973b935567460ae76823df01be584b5b279 (diff) | |
download | nextcloud-server-8e6e7976d2ebc6a2f255ff3ff9ea27addd97c5fa.tar.gz nextcloud-server-8e6e7976d2ebc6a2f255ff3ff9ea27addd97c5fa.zip |
fix: psalm
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/DB/Adapter.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/DB/Adapter.php b/lib/private/DB/Adapter.php index b6f098b1e59..71824bda9e8 100644 --- a/lib/private/DB/Adapter.php +++ b/lib/private/DB/Adapter.php @@ -78,7 +78,7 @@ class Adapter { * @throws Exception * @deprecated 15.0.0 - use unique index and "try { $db->insert() } catch (UniqueConstraintViolationException $e) {}" instead, because it is more reliable and does not have the risk for deadlocks - see https://github.com/nextcloud/server/pull/12371 */ - public function insertIfNotExist(string $table, array $input, ?array $compare = null): int { + public function insertIfNotExist($table, $input, ?array $compare = null) { $compare = $compare ?: array_keys($input); // Prepare column names and generate placeholders |