Skip to content

Commit

Permalink
Fixed PHPStan issues (#1034)
Browse files Browse the repository at this point in the history
  • Loading branch information
barw4 authored Dec 6, 2023
1 parent d4395fe commit d01511a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 46 deletions.
45 changes: 0 additions & 45 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/lib/View/Filter/AdminSearchViewFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] ?? '';
Expand Down

0 comments on commit d01511a

Please sign in to comment.