Smile-SA/elasticsuite

View on GitHub
src/module-elasticsuite-core/Search/Request/Aggregation/Bucket/TopHits.php

Summary

Maintainability
A
1 hr
Test Coverage

Method __construct has 10 arguments (exceeds 4 allowed). Consider refactoring.
Open

        $name,
        array $sourceFields = [],
        int $size = 1,
        $sortOrder = BucketInterface::SORT_ORDER_COUNT,
        array $metrics = [],

    Doc-block of $filter in __construct is phpdoc param type \Smile\ElasticsuiteCore\Search\Request\QueryInterface which is not a permitted replacement of the nullable param type ?\Smile\ElasticsuiteCore\Search\Request\QueryInterface declared in the signature ('?T' should be documented as 'T|null' or '?T')
    Open

         * @param QueryInterface      $filter       Bucket filter.

    Doc-block of $nestedFilter in __construct is phpdoc param type \Smile\ElasticsuiteCore\Search\Request\QueryInterface which is not a permitted replacement of the nullable param type ?\Smile\ElasticsuiteCore\Search\Request\QueryInterface declared in the signature ('?T' should be documented as 'T|null' or '?T')
    Open

         * @param QueryInterface      $nestedFilter Nested filter for the bucket.

    There are no issues that match your filters.

    Category
    Status