Smile-SA/elasticsuite

View on GitHub

Showing 1,357 of 1,357 total issues

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

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

use Smile\ElasticsuiteCore\Search\Request\ContainerConfigurationFactory;

Argument 3 (attributes) is \Magento\Catalog\Model\ResourceModel\Eav\Attribute[] but \Smile\ElasticsuiteCatalog\Search\Request\Product\Aggregation\Provider\FilterableAttributes\ModifierInterface::modifyAttributes() takes \Magento\Catalog\Model\ResourceModel\Product\Attribute[] defined at /code/src/module-elasticsuite-catalog/Search/Request/Product/Aggregation/Provider/FilterableAttributes/ModifierInterface.php:37
Open

            $attributes = $modifier->modifyAttributes($storeId, $this->requestName, $attributes, $query, $filters, $queryFilters);

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

use Magento\Eav\Setup\EavSetup;

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

    private bool $hasKnnFields = false;

Returning type ?array but getRootFilter() is declared to return array
Open

        return $filter;

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.

Returning type string but getFixedInterval() is declared to return int
Open

        return $this->fixedInterval;

Suspicious array access to null
Open

            $bucketsPath[$paramName] = $path;

Returning type float but getValue() is declared to return int|string
Open

        return $this->value;

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

    public function setName($name): self

Suspicious array access to \Magento\Framework\DataObject
Open

                    foreach ($indicesMapping[$item['indexer_id']] as $index) {

Argument 2 (type) is null but \Smile\ElasticsuiteThesaurus\Model\Import\Provider::processTermsData() takes string defined at /code/src/module-elasticsuite-thesaurus/Model/Import/Provider.php:123
Open

                        $row[$columnKey] = $this->importProvider->processTermsData($row[$columnKey], $type);

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

Doc-block of getProductRequestPath 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 1 (category) is \Magento\Catalog\Model\Category but \Smile\ElasticsuiteVirtualCategory\Model\ResourceModel\Category\Product\Position::getProductBlacklistByCategory() takes \Magento\Catalog\Api\Data\CategoryInterface|int defined at /code/src/module-elasticsuite-virtual-category/Model/ResourceModel/Category/Product/Position.php:98
Open

        $oldBlacklistedProductIds     = array_values($this->saveHandler->getProductBlacklistByCategory($category));

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

use Magento\Catalog\Model\Config\LayerCategoryConfig;
Severity
Category
Status
Source
Language