Skip to content

Commit 4ff021d

Browse files
committed
chore(psalm): Update stubs
1 parent 3c8140e commit 4ff021d

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

composer.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/stubs/oc_db_querybuilder_querybuilder.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,17 @@
2727
use OCP\IDBConnection;
2828
use Psr\Log\LoggerInterface;
2929

30+
enum ConflictResolutionMode {
31+
/**
32+
* Wait for the row to be unlocked.
33+
*/
34+
case Ordinary;
35+
/**
36+
* Skip the row if it is locked.
37+
*/
38+
case SkipLocked;
39+
}
40+
3041
class QueryBuilder implements IQueryBuilder {
3142
/** @var string */
3243
protected $lastInsertedTable;
@@ -981,4 +992,6 @@ public function runAcrossAllShards(): self
981992
{
982993
}
983994

995+
996+
public function forUpdate(ConflictResolutionMode $conflictResolutionMode = ConflictResolutionMode::Ordinary): self {}
984997
}

0 commit comments

Comments
 (0)