From 73cb3bfe30972d46540d9abfcae6e9ac3ea2260d Mon Sep 17 00:00:00 2001
From: Ide Braakman <17730-idebr@users.noreply.drupalcode.org>
Date: Fri, 16 Dec 2022 16:34:46 +0100
Subject: [PATCH] Issue #3310536 by nkoporec, idebr, joan gutierrez,
 chr.fritsch, uverricardovidaleszu, borisson_, mkalkbrenner: [2.0.x]
 $request->get may no longer return array as of Symfony 6.0
 (BadRequestException)

---
 src/Controller/FacetBlockAjaxController.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Controller/FacetBlockAjaxController.php b/src/Controller/FacetBlockAjaxController.php
index 26430355..6c52814e 100644
--- a/src/Controller/FacetBlockAjaxController.php
+++ b/src/Controller/FacetBlockAjaxController.php
@@ -117,7 +117,7 @@ class FacetBlockAjaxController extends ControllerBase {
 
     // Rebuild the request and the current path, needed for facets.
     $path = $request->request->get('facet_link');
-    $facets_blocks = $request->request->get('facets_blocks');
+    $facets_blocks = $request->request->all()['facets_blocks'] ?? [];
 
     if (empty($path) || empty($facets_blocks)) {
       throw new NotFoundHttpException('No facet link or facet blocks found.');
-- 
GitLab