Skip to content

Commit

Permalink
Merge pull request #8928 from simPod/wrap-types
Browse files Browse the repository at this point in the history
Add types to `EM::wrapInTransaction()`
  • Loading branch information
greg0ire authored Aug 21, 2021
2 parents aee197f + 44bea09 commit db17502
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Doctrine/ORM/EntityManagerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,11 @@ public function transactional($func);
* If an exception occurs during execution of the function or flushing or transaction commit,
* the transaction is rolled back, the EntityManager closed and the exception re-thrown.
*
* @param callable $func The function to execute transactionally.
* @param callable(): T $func The function to execute transactionally.
*
* @return T The value returned from the closure.
*
* @return mixed The value returned from the closure.
* @template T
*/
// public function wrapInTransaction(callable $func);

Expand Down

0 comments on commit db17502

Please sign in to comment.