From fe8d227b133036579a347e4b352a65880b641706 Mon Sep 17 00:00:00 2001 From: Thorsten Reiter Date: Wed, 19 Nov 2025 09:36:58 +0100 Subject: [PATCH 1/2] Fixed phpdoc annotation --- phpstan-baseline.neon | 6 ------ .../Values/Content/Search/AggregationResultCollection.php | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index b81f64ba80..df7a1e1cf3 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -8652,12 +8652,6 @@ parameters: count: 1 path: src/contracts/Repository/Values/Content/Search/AggregationResultCollection.php - - - message: '#^Method Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Search\\AggregationResultCollection\:\:toArray\(\) should return array\ but returns array\\.$#' - identifier: return.type - count: 1 - path: src/contracts/Repository/Values/Content/Search/AggregationResultCollection.php - - message: '#^Property Ibexa\\Contracts\\Core\\Repository\\Values\\Content\\Search\\Facet\\ContentTypeFacet\:\:\$entries type has no value type specified in iterable type array\.$#' identifier: missingType.iterableValue diff --git a/src/contracts/Repository/Values/Content/Search/AggregationResultCollection.php b/src/contracts/Repository/Values/Content/Search/AggregationResultCollection.php index 268215ffff..ba65ff08ac 100644 --- a/src/contracts/Repository/Values/Content/Search/AggregationResultCollection.php +++ b/src/contracts/Repository/Values/Content/Search/AggregationResultCollection.php @@ -95,7 +95,7 @@ public function isEmpty(): bool /** * Gets a native PHP array representation of the collection. * - * @return \Ibexa\Contracts\Core\Repository\Values\ContentType\FieldDefinition[] + * @return AggregationResult[] */ public function toArray(): array { From 07193d49a3e7fc0fbc19dd6ee82626e90de604a1 Mon Sep 17 00:00:00 2001 From: Thorsten Reiter Date: Wed, 19 Nov 2025 11:01:20 +0100 Subject: [PATCH 2/2] use fully qualified class name --- .../Values/Content/Search/AggregationResultCollection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contracts/Repository/Values/Content/Search/AggregationResultCollection.php b/src/contracts/Repository/Values/Content/Search/AggregationResultCollection.php index ba65ff08ac..d2c251e76c 100644 --- a/src/contracts/Repository/Values/Content/Search/AggregationResultCollection.php +++ b/src/contracts/Repository/Values/Content/Search/AggregationResultCollection.php @@ -95,7 +95,7 @@ public function isEmpty(): bool /** * Gets a native PHP array representation of the collection. * - * @return AggregationResult[] + * @return \Ibexa\Contracts\Core\Repository\Values\Content\Search\AggregationResult[] */ public function toArray(): array {