From f39003e7be746e16afecc8699ec5c550df560165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olda=20=C5=A0=C3=A1lek?= Date: Fri, 7 Jun 2024 12:20:56 +0200 Subject: [PATCH] Add `immediately-invoked-callable` into EntityManager stub --- stubs/EntityManagerInterface.stub | 9 +++++++++ 1 file changed, 9 insertions(+) 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); + }