Skip to content

Commit

Permalink
Minor fix phpdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Jul 30, 2023
1 parent 96441f5 commit 79a704f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Connection/ConnectionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,15 @@ public function setTablePrefix(string $value): void;
/**
* Executes callback provided in a transaction.
*
* @psalm-param Closure(ConnectionInterface): mixed $closure A valid PHP callback that performs the job. Accepts connection instance as parameter.
* @param Closure $closure A valid PHP callback that performs the job. Accepts connection instance as parameter.
* @param string|null $isolationLevel The isolation level to use for this transaction.
* {@see TransactionInterface::begin()} for details.
*
* @throws Throwable If there is any exception during query. In this case, the transaction will be rolled back.
*
* @return mixed Result of callback function.
*
* @psalm-param Closure(ConnectionInterface): mixed $closure
*/
public function transaction(Closure $closure, string $isolationLevel = null): mixed;
}

0 comments on commit 79a704f

Please sign in to comment.