Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3e65a1c

Browse files
bug #27352 Remove reference to the test container after kernel shutdown (stof)
This PR was merged into the 4.1 branch. Discussion ---------- Remove reference to the test container after kernel shutdown | Q | A | ------------- | --- | Branch? | 4.1 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a 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. Commits ------- d8fb1b9 Remove reference to the test container after kernel shutdown
2 parents 0f06410 + d8fb1b9 commit 3e65a1c

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)