Smile-SA/elasticsuite

View on GitHub

Showing 1,375 of 1,375 total issues

Argument 5 (query) is null but \Smile\ElasticsuiteCore\Search\Request\Builder::create() takes \Smile\ElasticsuiteCore\Search\Request\QueryInterface|string defined at /code/src/module-elasticsuite-core/Search/Request/Builder.php:136
Open

            $query,

Assigning array<int></int> to property but \Smile\ElasticsuiteCatalog\Search\Request\Product\Aggregation\Provider\FilterableAttributes\Modifier\Statistics->applicableAttributes is \Magento\Catalog\Model\ResourceModel\Eav\Attribute[]
Open

                    $this->applicableAttributes[] = $attribute;

Declaration of function executeBulk(\Smile\ElasticsuiteCore\Api\Index\Bulk\BulkRequestInterface $bulk) : void should be compatible with function executeBulk(\Smile\ElasticsuiteCore\Api\Index\Bulk\BulkRequestInterface $bulk) : \Smile\ElasticsuiteCore\Api\Index\Bulk\BulkResponseInterface defined in /code/src/module-elasticsuite-core/Api/Index/IndexOperationInterface.php:103
Open

    public function executeBulk(\Smile\ElasticsuiteCore\Api\Index\Bulk\BulkRequestInterface $bulk)

syntax error, unexpected 'QueryResultFactory' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)
Open

    private QueryResultFactory $queryResultFactory;

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

Suspicious array access to null
Open

                    $this->elasticsuiteIndices[$name] = $aliases ? key($aliases['aliases']) : null;

Possibly zero references to use statement for classlike/namespace DateInterval (\DateInterval)
Open

use DateInterval;

Invalid offset "type" of array type array{}
Open

                        $type = $columnValues[ThesaurusInterface::TYPE];

Doc-block of $resource in __construct is phpdoc param type \Magento\Framework\Model\ResourceModel\Db\AbstractDb which is not a permitted replacement of the nullable param type ?\Magento\Framework\Model\ResourceModel\Db\AbstractDb declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

     * @param \Magento\Framework\Model\ResourceModel\Db\AbstractDb         $resource       Abstract Resource

Doc-block of $resource in __construct is phpdoc param type \Magento\Framework\Model\ResourceModel\AbstractResource which is not a permitted replacement of the nullable param type ?\Magento\Framework\Model\ResourceModel\AbstractResource declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

     * @param \Magento\Framework\Model\ResourceModel\AbstractResource $resource           Magento Resource

Possibly zero references to use statement for classlike/namespace InputException (\Magento\Framework\Exception\InputException)
Open

use Magento\Framework\Exception\InputException;

Possibly zero references to use statement for classlike/namespace Event (\Composer\EventDispatcher\Event)
Open

use Composer\EventDispatcher\Event;

Class \Smile\ElasticsuiteTracker\Api\EventProcessorInterface was passed to foreach, but it does not extend Traversable and doesn't have any declared properties. (This check excludes dynamic properties)
Open

        foreach ($this->processors as $processor) {

Doc-block of getNotificationCode has declared return type string which is not a permitted replacement of the nullable return type ?string declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

     * @return string

Argument 2 (pieces) is array{0:'getCategorySearchQuery',1:mixed,2:int,3:mixed,4:bool} but \implode() takes string[]
Open

        $cacheKey = implode(

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

     * @return QueryInterface

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