Skip to content

Commit caaf64c

Browse files
committed
Swap isNestedTransaction() for getSavepointIdentifier()
1 parent ba24646 commit caaf64c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Transaction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ public function getIsolationLevel(): TransactionIsolation;
1919
public function isActive(): bool;
2020

2121
/**
22-
* @return bool True if this transaction was created inside another transaction using a savepoint.
22+
* @return string|null Nested transaction identifier or null if a top-level transaction.
2323
*/
24-
public function isNestedTransaction(): bool;
24+
public function getSavepointIdentifier(): ?string;
2525

2626
/**
2727
* Commits the transaction and makes it inactive.

0 commit comments

Comments
 (0)