Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fix phpdoc and changelog #733

Merged
merged 3 commits into from
Jul 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
Loading