Skip to content

Commit cdf8abc

Browse files
authored
Add transaction generics (#53357)
1 parent fa5c6bf commit cdf8abc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Illuminate/Database/Concerns/ManagesTransactions.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@
1010
trait ManagesTransactions
1111
{
1212
/**
13+
* @template TReturn of mixed
14+
*
1315
* Execute a Closure within a transaction.
1416
*
15-
* @param \Closure $callback
17+
* @param (\Closure(static): TReturn) $callback
1618
* @param int $attempts
17-
* @return mixed
19+
* @return TReturn
1820
*
1921
* @throws \Throwable
2022
*/

0 commit comments

Comments
 (0)