mirror of
https://github.com/nextcloud/server.git
synced 2026-03-25 20:03:23 -04:00
fix: psalm
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
This commit is contained in:
parent
388f2973b9
commit
8e6e7976d2
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue