From ff2c3c8e77fcaf332ab2429ed5b559de7d42191f Mon Sep 17 00:00:00 2001 From: Alexandr Vronskiy Date: Mon, 29 Apr 2024 15:54:41 +0300 Subject: [PATCH] Update EntityManager.php --- src/EntityManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EntityManager.php b/src/EntityManager.php index 79c18f4..7d512a2 100644 --- a/src/EntityManager.php +++ b/src/EntityManager.php @@ -34,7 +34,7 @@ public function getWrappedEm() : EntityManagerInterface /** @psalm-var EntityManagerInterface */ $context[self::class] = ($this->emCreatorFn)(); /** @psalm-suppress MixedMethodCall */ - Co::defer(function () use ($context) { + Co::defer(static function () use ($context) { $context[self::class]->close(); unset($context[self::class]); });