From a9cf699cfec2844d4685eb38c31249987e9690c1 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 | 6 ++++-- 1 file changed, 4 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..8181d91f2d 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,10 @@ 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