Closed gilles-g closed 1 year ago
I'd say the container is freed before the end of the test case. You need to hold a reference to it until the end of the tests by putting it in a variable.
Ok I will continu to search, but why it's work with 6.2 and not with 6.3?
https://github.com/lexik/LexikFormFilterBundle/blob/master/Tests/TestCase.php#L133-L188
This looks like a side-effect of https://github.com/symfony/symfony/pull/48469
Ok Thank you @nicolas-grekas I have hold a static reference of the container and it's ok. Not easy with WeakReference I suppose
Hi, @nicolas-grekas any ideas with errors for 6.3?