Skip to content

Commit ff2c3c8

Browse files
authored
Update EntityManager.php
1 parent fa03376 commit ff2c3c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EntityManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function getWrappedEm() : EntityManagerInterface
3434
/** @psalm-var EntityManagerInterface */
3535
$context[self::class] = ($this->emCreatorFn)();
3636
/** @psalm-suppress MixedMethodCall */
37-
Co::defer(function () use ($context) {
37+
Co::defer(static function () use ($context) {
3838
$context[self::class]->close();
3939
unset($context[self::class]);
4040
});

0 commit comments

Comments
 (0)