Smile-SA/elasticsuite

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

Summary

Maintainability
A
0 mins
Test Coverage

Default value for string $boost can't be int
Open

    public function __construct(

Declaration of function setName($name) : \Smile\ElasticsuiteCore\Search\Request\Query\Span\SpanOr 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

Assigning string to property but \Smile\ElasticsuiteCore\Search\Request\Query\Span\SpanOr->boost is int
Open

        $this->boost   = $boost;

Declaration of function setName($name) : \Smile\ElasticsuiteCore\Search\Request\Query\Span\SpanOr should be compatible with function setName(string $name) : \Smile\ElasticsuiteCore\Search\Request\QueryInterface (method returning '\Smile\ElasticsuiteCore\Search\Request\Query\Span\SpanOr' 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

There are no issues that match your filters.

Category
Status