Smile-SA/elasticsuite

View on GitHub

Showing 1,375 of 1,375 total issues

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

use Magento\Framework\App\ObjectManager;

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.

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

        return $this->spellingType;

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

    public function __construct(

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 float but getValue() is declared to return int|string
Open

        return $this->value;

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

Possibly zero references to use statement for classlike/namespace OptimizerInterface (\Smile\ElasticsuiteCatalogOptimizer\Api\Data\OptimizerInterface)
Open

use Smile\ElasticsuiteCatalogOptimizer\Api\Data\OptimizerInterface;

Possibly zero references to use statement for classlike/namespace Optimizer (\Smile\ElasticsuiteCatalogOptimizer\Model\Optimizer)
Open

use Smile\ElasticsuiteCatalogOptimizer\Model\Optimizer;

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

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

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

use Smile\ElasticsuiteCore\Api\Client\ClientConfigurationInterface;

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

use Smile\ElasticsuiteCore\Api\Index\TypeInterface;

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

        return $filter;

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

            'query'        => $this->queryBuilder->createQuery($containerConfig, $query, $queryFilters, $spellingType),

Argument 1 (attribute) is \Magento\Catalog\Api\Data\ProductAttributeInterface but \Smile\ElasticsuiteCatalog\Helper\ProductAttribute::getFilterField() takes \Magento\Eav\Model\Entity\Attribute\AttributeInterface defined at /code/src/module-elasticsuite-catalog/Helper/AbstractAttribute.php:338
Open

        return $this->attributeHelper->getFilterField($attribute);

Argument 1 (category) is \Magento\Catalog\Model\Category but \Smile\ElasticsuiteCatalog\Model\Layer\Filter\Category::getCategoryFilterUrl() takes \Magento\Catalog\Api\Data\CategoryInterface defined at /code/src/module-elasticsuite-catalog/Model/Layer/Filter/Category.php:264
Open

                            'url'   => $this->getCategoryFilterUrl($category),

Assigning ?\Magento\Framework\App\Config\ScopeConfigInterface to property but \Smile\ElasticsuiteCatalog\Model\Product\Indexer\Fulltext\Datasource\AttributeData->scopeConfig is \Magento\Framework\App\Config\ScopeConfigInterface
Open

        $this->scopeConfig = $scopeConfig;

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

        $aggregations = $this->getAggregationsConfig($attributes);

Argument 1 (attribute) is \Magento\Catalog\Api\Data\ProductAttributeInterface but \Smile\ElasticsuiteCatalog\Helper\ProductAttribute::getFilterField() takes \Magento\Eav\Model\Entity\Attribute\AttributeInterface defined at /code/src/module-elasticsuite-catalog/Helper/AbstractAttribute.php:338
Open

            $field     = $this->mappingHelper->getFilterField($attribute);

Possibly zero references to use statement for classlike/namespace CompletePackageInterface (\Composer\Package\CompletePackageInterface)
Open

use Composer\Package\CompletePackageInterface;
Severity
Category
Status
Source
Language