Skip to content

Commit

Permalink
Minor fix phpdoc and changelog (#733)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik authored Jul 31, 2023
1 parent 4434b83 commit c5aa0b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

## 1.1.1 under development

- no changes in this release.
- New #617: Add debug collector for `yiisoft/yii-debug` (@xepozz)
- Enh #617, #733: Add specific psalm annotation of `$closure` parameter in `ConnectionInterface::transaction()`
method (@xepozz, @vjik)

## 1.1.0 July 24, 2023

- Enh #617: Add debug collector for yiisoft/yii-debug (@xepozz)
- Chg #722: Remove legacy array syntax for typecast. Use `Param` instead (@terabytesoftw)
- Chg #724: Typecast refactoring (@Tigrov)
- Chg #728: Refactor `AbstractSchema::getColumnPhpType()` (@Tigrov)
Expand Down
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(ConnectionInterface):void $closure
*/
public function transaction(Closure $closure, string $isolationLevel = null): mixed;
}

0 comments on commit c5aa0b1

Please sign in to comment.