Smile-SA/elasticsuite

View on GitHub

Showing 1,375 of 1,375 total issues

Possibly zero references to use statement for classlike/namespace QueryInterface (\Smile\ElasticsuiteCore\Search\Request\QueryInterface)
Open

use Smile\ElasticsuiteCore\Search\Request\QueryInterface;

Argument 2 (pieces) is array{0:\Zend_Db_Expr,1:mixed} but \implode() takes string[]
Open

            $joinAttributeValuesCondition = implode(' AND ', $joinAttributeValuesCondition);

Possibly zero references to use statement for classlike/namespace Category (\Magento\Catalog\Model\Category)
Open

use Magento\Catalog\Model\Category;

Possibly zero references to use statement for classlike/namespace EavSetup (\Magento\Eav\Setup\EavSetup)
Open

use Magento\Eav\Setup\EavSetup;

Possibly zero references to use statement for classlike/namespace TypeInterface (\Smile\ElasticsuiteCore\Api\Index\TypeInterface)
Open

use Smile\ElasticsuiteCore\Api\Index\TypeInterface;

Doc-block of $connection in __construct contains phpdoc param type mixed which is incompatible with the param type ?\Magento\Framework\DB\Adapter\AdapterInterface declared in the signature
Open

     * @param mixed                  $connection    Database Connection

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.

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.

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

Possibly zero references to use statement for classlike/namespace ContextInterface (\Smile\ElasticsuiteCore\Api\Search\ContextInterface)
Open

use Smile\ElasticsuiteCore\Api\Search\ContextInterface;

Possibly zero references to use statement for classlike/namespace UrlInterface (\Magento\Backend\Model\UrlInterface)
Open

use Magento\Backend\Model\UrlInterface;

Argument 1 (query) is array but \Smile\ElasticsuiteCatalog\Model\ResourceModel\Product\Fulltext\Collection::setSearchQuery() takes \Smile\ElasticsuiteCore\Search\Request\QueryInterface|string defined at /code/src/module-elasticsuite-catalog/Model/ResourceModel/Product/Fulltext/Collection.php:351
Open

        $collection->setSearchQuery($terms);

Assigning array to property but \Smile\ElasticsuiteCatalog\Model\Product\Indexer\Fulltext\Action\FullFactory->fullActionPool is \Magento\CatalogSearch\Model\Indexer\Fulltext\Action\Full
Open

        $this->fullActionPool = $fullActionPool;

Returning type void but aroundReindex() is declared to return \Magento\Catalog\Model\Category
Open

        return;

Returning type void but aroundReindex() is declared to return \Magento\Catalog\Model\Category
Open

        return;

Returning type string but getDefaultSearchType() is declared to return \Smile\ElasticsuiteCore\Api\Index\TypeInterface
Open

        return $this->defaultSearchType;

Assigning \Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Response\Document to property but \Smile\ElasticsuiteCatalogOptimizer\Model\Optimizer\Preview\Item->document is \Magento\Catalog\Api\Data\ProductInterface
Open

        $this->document      = $document;

Assigning \Smile\ElasticsuiteCore\Search\Request\Query\Builder to property but \Smile\ElasticsuiteCatalogOptimizer\Model\Optimizer\Preview\SearchQuery->queryBuilder is \Smile\ElasticsuiteCore\Search\Request\Query\Filter\QueryBuilder
Open

        $this->queryBuilder             = $queryBuilder;

Argument 3 (spellingType) is int but \Smile\ElasticsuiteCatalogOptimizer\Model\Optimizer\Preview\SearchQuery::createFullTextQuery() takes string defined at /code/src/module-elasticsuite-catalog-optimizer/Model/Optimizer/Preview/SearchQuery.php:99
Open

        $query        = $this->createFullTextQuery($containerConfiguration, $queryText, $spellingType);

Class \Smile\ElasticsuiteCatalog\Model\ResourceModel\Category\Fulltext\Collection was passed to foreach, but it does not extend Traversable and none of its declared properties are accessible from this context. (This check excludes dynamic properties)
Open

                foreach ($categoryCollection as $category) {
Severity
Category
Status
Source
Language