From 3786d17c66ec9a063ed7a2b3a0d9b61491a04312 Mon Sep 17 00:00:00 2001 From: Olda Salek Date: Fri, 7 Jun 2024 11:03:35 +0200 Subject: [PATCH 1/2] add param-immediately-invoked-callable into EntityManagerInterface.wrapInTransaction stub --- stubs/EntityManagerInterface.stub | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/stubs/EntityManagerInterface.stub b/stubs/EntityManagerInterface.stub index 87e8fbcb..3cdadc75 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 Closure(): T $func + * @return T + * + * @template T + */ + public function wrapInTransaction(callable $func); + } From 705dbb8d9447618cf7e8445360a3f4aeb7e9637a Mon Sep 17 00:00:00 2001 From: Olda Salek Date: Fri, 7 Jun 2024 12:17:20 +0200 Subject: [PATCH 2/2] change Closure to callable --- stubs/EntityManagerInterface.stub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/EntityManagerInterface.stub b/stubs/EntityManagerInterface.stub index 3cdadc75..caf65b47 100644 --- a/stubs/EntityManagerInterface.stub +++ b/stubs/EntityManagerInterface.stub @@ -70,7 +70,7 @@ interface EntityManagerInterface extends ObjectManager /** * @param-immediately-invoked-callable $func - * @param Closure(): T $func + * @param callable(): T $func * @return T * * @template T