Skip to content

Commit

Permalink
Add transaction generics (#53357)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatusBoa authored Oct 31, 2024
1 parent fa5c6bf commit cdf8abc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Illuminate/Database/Concerns/ManagesTransactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@
trait ManagesTransactions
{
/**
* @template TReturn of mixed
*
* Execute a Closure within a transaction.
*
* @param \Closure $callback
* @param (\Closure(static): TReturn) $callback
* @param int $attempts
* @return mixed
* @return TReturn
*
* @throws \Throwable
*/
Expand Down

0 comments on commit cdf8abc

Please sign in to comment.