Smile-SA/elasticsuite

View on GitHub

Showing 1,375 of 1,375 total issues

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

use Smile\ElasticsuiteThesaurus\Model\ThesaurusFactory;

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

use Smile\ElasticsuiteThesaurus\Model\ThesaurusFactory;

Call with 2 arg(s) to \Smile\ElasticsuiteVirtualCategory\Model\Rule\Condition\Product::getSearchQuery() which only takes 1 arg(s) defined at /code/src/module-elasticsuite-virtual-category/Model/Rule/Condition/Product.php:99
Open

        return parent::getSearchQuery($excludedCategories, $virtualCategoryRoot);

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

use Magento\Catalog\Model\Config\LayerCategoryConfig;

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\Catalog\Model\Category but \Smile\ElasticsuiteVirtualCategory\Model\ResourceModel\Category\Product\Position::getProductPositionsByCategory() takes \Magento\Catalog\Api\Data\CategoryInterface|int defined at /code/src/module-elasticsuite-virtual-category/Model/ResourceModel/Category/Product/Position.php:78
Open

        $oldPositionProductIds     = array_keys($this->saveHandler->getProductPositionsByCategory($category));

Argument 1 (product) is \Magento\Catalog\Model\Product but \Smile\ElasticsuiteVirtualCategory\Model\Url::getProductRequestPath() takes \Smile\ElasticsuiteVirtualCategory\Model\Product defined at /code/src/module-elasticsuite-virtual-category/Model/Url.php:170
Open

                $requestPath = $this->urlModel->getProductRequestPath($product, $category);

Argument 1 (product) is \Magento\Catalog\Model\Product but \Smile\ElasticsuiteVirtualCategory\Model\Url::getProductRequestPath() takes \Smile\ElasticsuiteVirtualCategory\Model\Product defined at /code/src/module-elasticsuite-virtual-category/Model/Url.php:170
Open

            $requestPath = $this->urlModel->getProductRequestPath($product, $product->getCategory());

Returning type ?string but getRequestPath() is declared to return string
Open

        return $requestPath;

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

Suspicious array access to \Magento\Framework\DataObject
Open

                if (array_key_exists($item['indexer_id'], $indicesMapping)) {

Suspicious array access to \Magento\Framework\DataObject
Open

                        $item['indexer_updated']

Argument 3 (baseWeight) is float but \Smile\ElasticsuiteThesaurus\Model\Index::getWeightedRewrites() takes int defined at /code/src/module-elasticsuite-thesaurus/Model/Index.php:351
Open

            $rewrites        = $this->getWeightedRewrites($synonymRewrites, $config->getSynonymWeightDivider(), $originalBoost);

Doc-block of $resourceCollection in __construct is phpdoc param type \Magento\Framework\Data\Collection\AbstractDb which is not a permitted replacement of the nullable param type ?\Magento\Framework\Data\Collection\AbstractDb declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

     * @param \Magento\Framework\Data\Collection\AbstractDb           $resourceCollection Magento Collection

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

Possibly zero references to use statement for classlike/namespace CollectionFactory (\Smile\ElasticsuiteVirtualCategory\Model\ResourceModel\Product\CollectionFactory)
Open

use Smile\ElasticsuiteVirtualCategory\Model\ResourceModel\Product\CollectionFactory;

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

use Magento\Catalog\Model\CategoryFactory;

Declaration of function setName($name) : \Smile\ElasticsuiteCore\Search\Request\Query\MatchQuery should be compatible with function setName(string $name) : \Smile\ElasticsuiteCore\Search\Request\QueryInterface (method returning '\Smile\ElasticsuiteCore\Search\Request\Query\MatchQuery' 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\Span\SpanOr should be compatible with function setName(string $name) : \Smile\ElasticsuiteCore\Search\Request\QueryInterface (method returning '\Smile\ElasticsuiteCore\Search\Request\Query\Span\SpanOr' 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
Severity
Category
Status
Source
Language