Smile-SA/elasticsuite

View on GitHub

Showing 1,375 of 1,375 total issues

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

        $this->query     = $query;

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

    private int $slop;

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 $connection in __construct is phpdoc param type \Magento\Framework\DB\Adapter\AdapterInterface which is not a permitted replacement of the nullable param type ?\Magento\Framework\DB\Adapter\AdapterInterface declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

     * @param \Magento\Framework\DB\Adapter\AdapterInterface               $connection     Database Connection

Possibly zero references to use statement for classlike/namespace SessionIndex (\Smile\ElasticsuiteTracker\Model\ResourceModel\SessionIndex)
Open

use Smile\ElasticsuiteTracker\Model\ResourceModel\SessionIndex;

Doc-block of getId has declared return type int which is not a permitted replacement of the nullable return type ?int declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

     * @return int

Doc-block of $category in getVirtualRule contains phpdoc param type \Smile\ElasticsuiteVirtualCategory\Block\Adminhtml\Catalog\Category\CategoryInterface which is incompatible with the param type \Magento\Catalog\Api\Data\CategoryInterface declared in the signature
Open

     * @param CategoryInterface $category Category

Argument 1 (category) is \Magento\Framework\Model\AbstractModel but \Smile\ElasticsuiteVirtualCategory\Plugin\Catalog\Category\SaveProductsPositions::getAffectedProductIds() takes \Magento\Catalog\Model\Category defined at /code/src/module-elasticsuite-virtual-category/Plugin/Catalog/Category/SaveProductsPositions.php:109
Open

                    $affectedProductIds = $this->getAffectedProductIds($category);

Assigning array<string>|array{product:array{label:mixed}}|array{}</string> to property but \Smile\ElasticsuiteVirtualCategory\Plugin\Catalog\Helper\BreadcrumbPlugin->categoryPath is null
Open

            $this->categoryPath = $path;

Argument 1 (category) is ?\Magento\Catalog\Api\Data\CategoryInterface but \Smile\ElasticsuiteVirtualCategory\Helper\Rule::loadUsingCache() takes \Magento\Catalog\Api\Data\CategoryInterface defined at /code/src/module-elasticsuite-virtual-category/Helper/Rule.php:79
Open

        return $this->helper->loadUsingCache($category, 'getSearchQueriesByChildren');

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

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

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

Assigning string to property but \Smile\ElasticsuiteCore\Search\Request\Query\Span\SpanOr->boost is int
Open

        $this->boost   = $boost;

Possibly zero references to use statement for classlike/namespace IndexerCollection (\Magento\Indexer\Model\Indexer\Collection)
Open

use Magento\Indexer\Model\Indexer\Collection as IndexerCollection;

Returning type \Smile\ElasticsuiteCore\Api\Search\Request\Container\RelevanceConfigurationInterface but getConfig() is declared to return \Smile\ElasticsuiteThesaurus\Config\ThesaurusConfig
Open

        return $this->thesaurusConfigFactory->create($storeId, $containerName);

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

use Magento\Catalog\Model\Category;

Argument 1 (category) is \Magento\Framework\Model\AbstractModel but \Smile\ElasticsuiteVirtualCategory\Model\ResourceModel\Category\Product\Position::saveProductPositions() takes \Magento\Catalog\Api\Data\CategoryInterface defined at /code/src/module-elasticsuite-virtual-category/Model/ResourceModel/Category/Product/Position.php:118
Open

                    $this->saveHandler->saveProductPositions($category);

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

use Magento\Catalog\Model\Category;

Returning type string but getValues() is declared to return array
Open

        return $this->getValue();
Severity
Category
Status
Source
Language