diff --git a/src/lib/Search/Legacy/Content/Common/Gateway/CriterionHandler/IsContainer.php b/src/lib/Search/Legacy/Content/Common/Gateway/CriterionHandler/IsContainer.php index a56482e609..0cc4fb6988 100644 --- a/src/lib/Search/Legacy/Content/Common/Gateway/CriterionHandler/IsContainer.php +++ b/src/lib/Search/Legacy/Content/Common/Gateway/CriterionHandler/IsContainer.php @@ -35,8 +35,9 @@ public function handle( Criterion $criterion, array $languageSettings ) { - /** @var bool $isContainer */ - $isContainer = reset($criterion->value); + /** @var array{bool} $criterionValue */ + $criterionValue = $criterion->value; + $isContainer = reset($criterionValue); $subSelect = $this->connection->createQueryBuilder(); $subSelect