Smile-SA/elasticsuite

View on GitHub

Showing 1,300 of 1,300 total issues

Possibly zero references to use statement for classlike/namespace CategoryInterface (\Magento\Catalog\Api\Data\CategoryInterface)
Open

use Magento\Catalog\Api\Data\CategoryInterface;

Assigning array<int></int> to property but \Smile\ElasticsuiteVirtualCategory\Model\Rule->instances is \Magento\Catalog\Model\Category[]
Open

            $this->instances[$rootCategoryId][$cacheKey] = $rootCategory;

Argument 1 (controller) is \Magento\CatalogRule\Controller\Adminhtml\Promo\Widget\Chooser but \Smile\ElasticsuiteVirtualCategory\Plugin\Catalog\Category\ChooserPlugin::getIds() takes \Magento\Backend\App\Action defined at /code/src/module-elasticsuite-virtual-category/Plugin/Catalog/Category/ChooserPlugin.php:100
Open

            $this->getIds($controller)

Returning type false|string but getProductSavedPositions() is declared to return array
Open

        return json_encode($productPositions, JSON_FORCE_OBJECT);

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());

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

     * @param \Magento\Framework\Model\ResourceModel\Db\AbstractDb         $resource       Abstract Resource

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

Returning type false but getCurrentCategory() is declared to return \Magento\Catalog\Model\Category
Open

        return $category;

Suspicious array access to \Magento\Catalog\Model\Category
Open

        return $this->instances[$rootCategoryId][$cacheKey];

Call with 2 arg(s) to \Smile\ElasticsuiteCatalogRule\Model\Rule\Condition\Product\QueryBuilder::getSearchQuery() which only takes 1 arg(s) defined at /code/src/module-elasticsuite-catalog-rule/Model/Rule/Condition/Product/QueryBuilder.php:78
Open

        return $this->queryBuilder->getSearchQuery($categoryCondition, $excludedCategories);

Returning type \Smile\ElasticsuiteVirtualCategory\Plugin\Catalog\Category\SaveProductsPositions but unserializeProductPositions() is declared to return array
Open

        return $this;

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);

Doc-block of $entityFactory in __construct contains phpdoc param type \Magento\Framework\Data\Collection\EntityFactory which is incompatible with the param type \Magento\Framework\Data\Collection\EntityFactoryInterface declared in the signature
Open

     * @param \Magento\Framework\Data\Collection\EntityFactory             $entityFactory  Entity Factory

Assigning \Magento\Store\Model\StoreManagerInterface to property but \Smile\ElasticsuiteTracker\Helper\Data->storeManager is \Magento\Framework\App\Config\ScopeConfigInterface
Open

        $this->storeManager   = $storeManager;

Argument 5 (query) is null but \Smile\ElasticsuiteCore\Search\Request\Builder::create() takes \Smile\ElasticsuiteCore\Search\Request\QueryInterface|string defined at /code/src/module-elasticsuite-core/Search/Request/Builder.php:136
Open

        return $this->searchRequestBuilder->create($storeId, EventIndexInterface::INDEX_IDENTIFIER, 0, 0, null, [], [], $queryFilters);

Argument 5 (query) is null but \Smile\ElasticsuiteCore\Search\Request\Builder::create() takes \Smile\ElasticsuiteCore\Search\Request\QueryInterface|string defined at /code/src/module-elasticsuite-core/Search/Request/Builder.php:136
Open

        return $this->searchRequestBuilder->create($storeId, self::SEARCH_REQUEST_CONTAINER, 0, 0, null, [], [], $queryFilters);

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 $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 2 (storeId) is int but \Smile\ElasticsuiteCore\Helper\Cache::cleanIndexCache() takes string defined at /code/src/module-elasticsuite-core/Helper/Cache.php:114
Open

        $this->cacheHelper->cleanIndexCache(ThesaurusIndex::INDEX_IDENTIER, $storeId);

Class \Smile\ElasticsuiteThesaurus\Model\ResourceModel\Thesaurus\Collection was passed to foreach, but it does not extend Traversable. This may be intentional, because some of that class's declared properties are accessible from this context. (This check excludes dynamic properties)
Open

                foreach ($this as $item) {
Severity
Category
Status
Source
Language