Skip to content

Commit b1d4ac0

Browse files
authored
Merge pull request #664 from rieschl/memory-leak
bind Closure to null to allow the garbage collector do its work
2 parents c8ce08e + d467f5a commit b1d4ac0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DoctrineModule/Module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Module implements ConfigProviderInterface, InitProviderInterface, Bootstra
3535
public function init(ModuleManagerInterface $moduleManager)
3636
{
3737
AnnotationRegistry::registerLoader(
38-
function ($className) {
38+
static function ($className) {
3939
return class_exists($className);
4040
}
4141
);

0 commit comments

Comments
 (0)