Smile-SA/elasticsuite

View on GitHub

Showing 1,375 of 1,375 total issues

Argument 1 (args) is ?array but \Smile\ElasticsuiteCatalogGraphQl\Model\Resolver\Products\ContextUpdater::updateSearchContext() takes array defined at /code/src/module-elasticsuite-catalog-graph-ql/Model/Resolver/Products/ContextUpdater.php:77
Open

        $this->contextUpdater->updateSearchContext($args);

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                    Resource.

Call with 1 arg(s) to \Smile\ElasticsuiteCatalogOptimizer\Api\Data\OptimizerInterface::getConfig() which only takes 0 arg(s) defined at /code/src/module-elasticsuite-catalog-optimizer/Api/Data/OptimizerInterface.php:127
Open

                'modifier' => $optimizer->getConfig('scale_function'),

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 CollectionFactory (\Smile\ElasticsuiteCatalogOptimizer\Model\ResourceModel\Optimizer\CollectionFactory)
Open

use Smile\ElasticsuiteCatalogOptimizer\Model\ResourceModel\Optimizer\CollectionFactory;

Returning type null but getOptimizer() is declared to return \Smile\ElasticsuiteCatalogOptimizer\Api\Data\OptimizerInterface
Open

            return $this->optimizer;

Possibly zero references to use statement for classlike/namespace AbstractBlock (\Magento\Framework\View\Element\AbstractBlock)
Open

use Magento\Framework\View\Element\AbstractBlock;

Returning type bool but saveAttributesData() is declared to return array
Open

        return $result;

Assigning \Magento\Framework\Indexer\IndexerInterfaceFactory to property but \Smile\ElasticsuiteCatalog\Setup\InstallData->indexerFactory is \Smile\ElasticsuiteCatalog\Setup\IndexerInterfaceFactory
Open

        $this->indexerFactory  = $indexerFactory;

Argument 1 (element) is \Magento\Config\Model\Config\Structure\Element\Group|\Smile\ElasticsuiteCore\Model\Search\Request\RelevanceConfig\Structure\Element\Group but \Smile\ElasticsuiteCore\Model\Search\Request\RelevanceConfig\Structure\Element\Visibility::isVisible() takes \Magento\Config\Model\Config\Structure\AbstractElement defined at /code/src/module-elasticsuite-core/Model/Search/Request/RelevanceConfig/Structure/Element/Visibility.php:59
Open

        return $this->visibility->isVisible($this, $this->_scope);

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

        $this->filter = $filter;

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.

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

syntax error, unexpected 'protected' (T_PROTECTED), expecting variable (T_VARIABLE)
Open

        protected string $name,

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

use Magento\Store\Model\StoreManagerInterface;

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.

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.

Returning type array|array{} but parseAggregationFilters() is declared to return null|string
Open

        return $filters;

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

        $this->query  = $query;

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

use Magento\Framework\Registry;
Severity
Category
Status
Source
Language