- Issue created by @drubb
- Status changed to Closed: works as designed
almost 2 years ago 11:03am 25 February 2023 - 🇩🇪Germany drubb Sindelfingen
Found the culprit: it was some custom code implementing a search api subscriber and requiring a small code change in order to work with Symfony 6.
Before:
$query = \Drupal::request()->query; $f = (array) $query->get('f');
After:
$query = \Drupal::request()->query; $f = $query->all()['f'] ?? [];
So it's not caused by Facets module, closing this issue.
- 🇳🇴Norway efpapado
Thank you for posting your solution, I had exactly the same problem and took me quite a while debugging :)
- 🇮🇳India rajesh.vishwakarma
Thank you for your solution. It really helpful.
- 🇩🇪Germany hchonov 🇪🇺🇩🇪🇧🇬
Whoever comes across this but does not use custom code - the issue in the facets module has been fixed here - https://www.drupal.org/project/facets/issues/3367124 🐛 Drupal 10: InputBag::get() may no longer return an array in Symfony 6 Fixed
- 🇨🇦Canada teknocat
I'm really glad somebody posted this as an issue, because I ran into the same thing because of some custom code I didn't realise needed updating for Symfony 6. It's not really a deprecation so much as how you need to use the request object and its functions. Very hard to otherwise find an answer on.
- 🇮🇳India saravanaprasanth
@drubb Thank you for your solution. It was really helpful.