Skip to content

Commit d467f5a

Browse files
committed
bind Closure to null to allow the garbage collector do it's work
1 parent c8ce08e commit d467f5a

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)