Smile-SA/elasticsuite

View on GitHub

Showing 1,300 of 1,300 total issues

Call to deprecated function \Smile\ElasticsuiteCatalog\Model\Product\Indexer\Fulltext\Datasource\InventoryData::getResourceModel() defined at /code/src/module-elasticsuite-catalog/Model/Product/Indexer/Fulltext/Datasource/InventoryData.php:88
Open

        $inventoryData = $this->getResourceModel()->loadInventoryData($storeId, array_keys($indexData));

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

    private QueryResultFactory $queryResultFactory;

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

use Magento\Analytics\Model\SubscriptionStatusProvider;

Argument 1 (request) is \Magento\Framework\Search\RequestInterface but \Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Request\Mapper::buildSearchRequest() takes \Smile\ElasticsuiteCore\Search\RequestInterface defined at /code/src/module-elasticsuite-core/Search/Adapter/Elasticsuite/Request/Mapper.php:70
Open

            'body'  => $this->requestMapper->buildSearchRequest($request),

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

     * @param SortOrderInterface[] $sortOrders     Sort orders specification.

Assigning ?\Magento\Framework\Search\Request\QueryInterface to property but \Smile\ElasticsuiteCore\Search\Request\Query\Filtered->filter is \Smile\ElasticsuiteCore\Search\Request\QueryInterface
Open

        $this->filter = $filter;

Doc-block of $name in __construct is phpdoc param type string which is not a permitted replacement of the nullable param type ?string declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

     * @param string                                                          $name    Query Name

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

use Magento\Backend\Model\View\Result\Redirect;

Doc-block of $eventIndex in __construct contains phpdoc param type \Smile\ElasticsuiteTracker\Api\SessionIndexInterface which is incompatible with the param type \Smile\ElasticsuiteTracker\Api\EventIndexInterface declared in the signature
Open

     * @param \Smile\ElasticsuiteTracker\Api\SessionIndexInterface $eventIndex   Event index.

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) {

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

use \Magento\Catalog\Model\Product;

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

use Magento\Catalog\Model\Category;

Argument 1 (appliedRootCategory) is \Magento\Catalog\Model\Category|null but \Smile\ElasticsuiteVirtualCategory\Model\Url::getVirtualCategorySubtreeUrl() takes \Magento\Catalog\Api\Data\CategoryInterface defined at /code/src/module-elasticsuite-virtual-category/Model/Url.php:200
Open

                $this->virtualCategoryRoot->getAppliedRootCategory(),

Argument 4 (spellingType) is 1 but \Smile\ElasticsuiteCore\Search\Request\Query\Builder::createQuery() takes string defined at /code/src/module-elasticsuite-core/Search/Request/Query/Builder.php:75
Open

            SpellcheckerInterface::SPELLING_TYPE_EXACT

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;

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

        return $this->defaultSearchType;

Assigning string to property but \Smile\ElasticsuiteCore\Search\Request->spellingType is int
Open

            $this->spellingType = $spellingType;

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

use Magento\Framework\Data\Form;

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

use Smile\ElasticsuiteCore\Search\Request\ContainerConfiguration\RelevanceConfig\Factory;

Suspicious array access to ?mixed
Open

            $terms = array_merge($terms, explode(',', $termData['values']));
Severity
Category
Status
Source
Language