diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 1e3847449a..a487ca1b21 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -10690,56 +10690,11 @@ parameters: count: 1 path: src/lib/View/Filter/AdminSearchViewFilter.php - - - message: "#^Offset 'content_types' on string\\|null in empty\\(\\) does not exist\\.$#" - count: 1 - path: src/lib/View/Filter/AdminSearchViewFilter.php - - - - message: "#^Offset 'created' on string\\|null on left side of \\?\\? does not exist\\.$#" - count: 1 - path: src/lib/View/Filter/AdminSearchViewFilter.php - - - - message: "#^Offset 'last_modified' on string\\|null on left side of \\?\\? does not exist\\.$#" - count: 1 - path: src/lib/View/Filter/AdminSearchViewFilter.php - - - - message: "#^Offset 'limit' on string\\|null in isset\\(\\) does not exist\\.$#" - count: 1 - path: src/lib/View/Filter/AdminSearchViewFilter.php - - - - message: "#^Offset 'page' on string\\|null in isset\\(\\) does not exist\\.$#" - count: 1 - path: src/lib/View/Filter/AdminSearchViewFilter.php - - - - message: "#^Offset 'query' on string\\|null on left side of \\?\\? does not exist\\.$#" - count: 1 - path: src/lib/View/Filter/AdminSearchViewFilter.php - - - - message: "#^Offset 'section' on string\\|null in empty\\(\\) does not exist\\.$#" - count: 1 - path: src/lib/View/Filter/AdminSearchViewFilter.php - - - - message: "#^Offset 'subtree' on string\\|null on left side of \\?\\? does not exist\\.$#" - count: 1 - path: src/lib/View/Filter/AdminSearchViewFilter.php - - message: "#^Property Ibexa\\\\AdminUi\\\\View\\\\Filter\\\\AdminSearchViewFilter\\:\\:\\$siteAccessGroups type has no value type specified in iterable type array\\.$#" count: 1 path: src/lib/View/Filter/AdminSearchViewFilter.php - - - message: "#^Result of && is always false\\.$#" - count: 1 - path: src/lib/View/Filter/AdminSearchViewFilter.php - - message: "#^Method Ibexa\\\\AdminUi\\\\View\\\\Provider\\\\ContentTranslateView\\\\Configured\\:\\:buildContentTranslateView\\(\\) has parameter \\$viewConfig with no value type specified in iterable type array\\.$#" count: 1 diff --git a/src/lib/View/Filter/AdminSearchViewFilter.php b/src/lib/View/Filter/AdminSearchViewFilter.php index 445647a853..e405a36a1b 100644 --- a/src/lib/View/Filter/AdminSearchViewFilter.php +++ b/src/lib/View/Filter/AdminSearchViewFilter.php @@ -97,7 +97,7 @@ public function handleSearchForm(FilterViewBuilderParametersEvent $event): void return; } - $search = $request->query->get('search'); + $search = $request->query->all('search'); $limit = isset($search['limit']) ? (int)$search['limit'] : $this->configResolver->getParameter('pagination.search_limit'); $page = isset($search['page']) ? (int)$search['page'] : 1; $query = $search['query'] ?? '';