Skip to content

Commit

Permalink
Update EntityManager.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mrVrAlex committed Apr 29, 2024
1 parent fa03376 commit ff2c3c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EntityManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
});
Expand Down

0 comments on commit ff2c3c8

Please sign in to comment.