From bdb8ced5a9ea009a34df158666965334a64c8306 Mon Sep 17 00:00:00 2001 From: tischsoic Date: Thu, 22 Feb 2024 11:48:55 +0100 Subject: [PATCH] phpstan fix --- .../Content/Common/Gateway/CriterionHandler/IsContainer.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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