diff --git a/stubs/EntityManagerInterface.stub b/stubs/EntityManagerInterface.stub index 87e8fbcb..caf65b47 100644 --- a/stubs/EntityManagerInterface.stub +++ b/stubs/EntityManagerInterface.stub @@ -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); + }