lexik / LexikFormFilterBundle

This Symfony bundle aim to provide classes to build some form filters and then build a doctrine query from this form filter.
MIT License
389 stars 119 forks source link

Update ci.yml with Symfony 6.2, 6.3 #368

Closed gilles-g closed 1 year ago

gilles-g commented 1 year ago

Hi, @nicolas-grekas any ideas with errors for 6.3?

nicolas-grekas commented 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.

gilles-g commented 1 year ago

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

nicolas-grekas commented 1 year ago

This looks like a side-effect of https://github.com/symfony/symfony/pull/48469

gilles-g commented 1 year ago

Ok Thank you @nicolas-grekas I have hold a static reference of the container and it's ok. Not easy with WeakReference I suppose