8000 Remove reference to the test container after kernel shutdown · symfony/symfony@d8fb1b9 · GitHub
[go: up one dir, main page]

Skip to content

Commit d8fb1b9

Browse files
committed
Remove reference to the test container after kernel shutdown
This reference is not working anymore, as the main container was reset and cleaned. Keeping a reference to the test container will prevent collecting the object graph.
1 parent 7fb7cf2 commit d8fb1b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/Test/KernelTestCase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ protected static function ensureKernelShutdown()
123123
$container->reset();
124124
}
125125
}
126+
static::$container = null;
126127
}
127128

128129
/**

0 commit comments

Comments
 (0)
0