diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 8fb71d73..b7d85079 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -321,7 +321,7 @@ parameters: path: src/lib/FieldMapper/ContentFieldMapper/ContentDocumentLocationFields.php - - message: "#^Offset 'ancestors' does not exist on array\\{ancestors\\?\\: non\\-empty\\-array\\, ids\\: non\\-empty\\-array\\, parent_ids\\: non\\-empty\\-array\\, path_strings\\: non\\-empty\\-array\\, remote_ids\\: non\\-empty\\-array\\\\}\\.$#" + message: "#^Offset 'ancestors' does not exist on array\\{ancestors\\?\\: non\\-empty\\-array\\, mixed\\>, ids\\: non\\-empty\\-array\\, mixed\\>, parent_ids\\: non\\-empty\\-array\\, mixed\\>, path_strings\\: non\\-empty\\-array\\, string\\>, remote_ids\\: non\\-empty\\-array\\, mixed\\>\\}\\.$#" count: 1 path: src/lib/FieldMapper/ContentFieldMapper/ContentDocumentLocationFields.php @@ -505,11 +505,6 @@ parameters: count: 1 path: src/lib/Gateway/EndpointRegistry.php - - - message: "#^Property Ibexa\\\\Solr\\\\Gateway\\\\EndpointRegistry\\:\\:\\$endpoint type has no value type specified in iterable type array\\.$#" - count: 1 - path: src/lib/Gateway/EndpointRegistry.php - - message: "#^Method Ibexa\\\\Solr\\\\Gateway\\\\EndpointResolver\\:\\:getSearchTargets\\(\\) has parameter \\$languageSettings with no value type specified in iterable type array\\.$#" count: 1 @@ -1265,11 +1260,6 @@ parameters: count: 1 path: src/lib/ResultExtractor.php - - - message: "#^Method Ibexa\\\\Solr\\\\ResultExtractor\\:\\:getMatchedLanguageCode\\(\\) has parameter \\$hit with no type specified\\.$#" - count: 1 - path: src/lib/ResultExtractor.php - - message: "#^Parameter \\#3 \\$facetBuilder of method Ibexa\\\\Solr\\\\Query\\\\FacetFieldVisitor\\:\\:mapField\\(\\) expects Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Query\\\\FacetBuilder, Ibexa\\\\Contracts\\\\Core\\\\Repository\\\\Values\\\\Content\\\\Query\\\\FacetBuilder\\|null given\\.$#" count: 1 diff --git a/src/contracts/Query/AggregationVisitor.php b/src/contracts/Query/AggregationVisitor.php index d9d2e7fb..6e5fb77f 100644 --- a/src/contracts/Query/AggregationVisitor.php +++ b/src/contracts/Query/AggregationVisitor.php @@ -15,12 +15,12 @@ interface AggregationVisitor /** * Check if visitor is applicable to current aggreagtion. * - * @param array{languages: string[]} $languageFilter + * @phpstan-param array{languages: string[]} $languageFilter */ public function canVisit(Aggregation $aggregation, array $languageFilter): bool; /** - * @param array{languages: string[]} $languageFilter + * @phpstan-param array{languages: string[]} $languageFilter * * @return string[] */ diff --git a/src/lib/Gateway/EndpointRegistry.php b/src/lib/Gateway/EndpointRegistry.php index 9aea88d4..44c0822e 100644 --- a/src/lib/Gateway/EndpointRegistry.php +++ b/src/lib/Gateway/EndpointRegistry.php @@ -16,7 +16,7 @@ class EndpointRegistry /** * Registered endpoints. * - * @var array(string => Endpoint) + * @var array */ protected $endpoint = []; diff --git a/src/lib/ResultExtractor.php b/src/lib/ResultExtractor.php index 1c6baa81..fd7492d4 100644 --- a/src/lib/ResultExtractor.php +++ b/src/lib/ResultExtractor.php @@ -83,7 +83,7 @@ abstract public function extractHit($hit); /** * Returns language code of the Content's translation of the matched document. * - * @param $hit + * @param mixed $hit * * @return string */