Smile-SA/elasticsuite

View on GitHub
src/module-elasticsuite-core/Search/Request/Query/FunctionScore.php

Summary

Maintainability
A
45 mins
Test Coverage

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

        \Magento\Framework\Search\Request\QueryInterface $query,
        $functions = [],
        $name = null,
        $scoreMode = self::SCORE_MODE_SUM,
        $boostMode = self::BOOST_MODE_SUM,
Severity: Minor
Found in src/module-elasticsuite-core/Search/Request/Query/FunctionScore.php - About 45 mins to fix

    Declaration of function setName($name) : \Smile\ElasticsuiteCore\Search\Request\Query\FunctionScore should be compatible with function setName(string $name) : \Smile\ElasticsuiteCore\Search\Request\QueryInterface (method returning '\Smile\ElasticsuiteCore\Search\Request\Query\FunctionScore' cannot override method returning '\Smile\ElasticsuiteCore\Search\Request\QueryInterface') defined in /code/src/module-elasticsuite-core/Search/Request/QueryInterface.php:50
    Open

        public function setName($name): self

    Declaration of function setName($name) : \Smile\ElasticsuiteCore\Search\Request\Query\FunctionScore should be compatible with function setName(string $name) : \Smile\ElasticsuiteCore\Search\Request\QueryInterface (parameter #1 with no type cannot replace original parameter with type 'string') defined in /code/src/module-elasticsuite-core/Search/Request/QueryInterface.php:50
    Open

        public function setName($name): self

    There are no issues that match your filters.

    Category
    Status