Skip to content

Commit

Permalink
Add immediately-invoked-callable into EntityManager stub
Browse files Browse the repository at this point in the history
  • Loading branch information
mzk authored Jun 7, 2024
1 parent dd71401 commit f39003e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions stubs/EntityManagerInterface.stub
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,13 @@ interface EntityManagerInterface extends ObjectManager
*/
public function getClassMetadata($className);

/**
* @param-immediately-invoked-callable $func
* @param callable(): T $func
* @return T
*
* @template T
*/
public function wrapInTransaction(callable $func);

}

0 comments on commit f39003e

Please sign in to comment.