Smile-SA/elasticsuite

View on GitHub

Showing 1,375 of 1,375 total issues

Assigning \Magento\Framework\App\CacheInterface to property but \Smile\ElasticsuiteCore\Search\Request\RelevanceConfig\App\Config\ScopePool->cache is \Magento\Framework\Cache\FrontendInterface
Open

        $this->cache             = $cache;

Assigning array{} to property but \Smile\ElasticsuiteIndices\Model\IndexStatsProvider->elasticsuiteIndices is null
Open

            $this->elasticsuiteIndices = [];

Suspicious array access to ?mixed
Open

            $labelsByThesaurusId[$currentTerm['thesaurus_id']][] = $label;

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

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

Returning type null but getProductListBlock() is declared to return \Magento\Framework\View\Element\BlockInterface
Open

        return is_object($productListBlock) ? $productListBlock : null;

Argument 1 (categoryId) is string but \Smile\ElasticsuiteTracker\Block\Variables\Page\Catalog::getCategoryNameById() takes int defined at /code/src/module-elasticsuite-tracker/Block/Variables/Page/Catalog.php:233
Open

            $breadcrumb[] = html_entity_decode($this->getCategoryNameById($categoryId, $category->getStoreId()));

Invalid offset "query_id" of array type array{is_spellchecked:bool}
Open

            $eventData['page']['search']['query_id'] = (int) $eventData['page']['search']['query_id'];

Possibly zero references to use statement for classlike/namespace LoggerInterface (\Psr\Log\LoggerInterface)
Open

use Psr\Log\LoggerInterface;

Argument 1 (category) is \Magento\Catalog\Model\Category but \Smile\ElasticsuiteVirtualCategory\Block\Adminhtml\Catalog\Category\VirtualRule::getVirtualRule() takes \Magento\Catalog\Api\Data\CategoryInterface defined at /code/src/module-elasticsuite-virtual-category/Block/Adminhtml/Catalog/Category/VirtualRule.php:122
Open

        $virtualRule = $this->getVirtualRule($this->getCategory());

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

        return $category;

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

use Magento\Catalog\Model\Category as CategoryModel;

Returning type \Magento\Framework\DB\Select but getBaseSelectGlobal() is declared to return \Zend_Db_Select
Open

        return $select;

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

use Magento\Framework\Exception\NoSuchEntityException;

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

        $oldBlacklistedProductIds     = array_values($this->saveHandler->getProductBlacklistByCategory($category));

Argument 1 (appliedRoot) is \Magento\Catalog\Model\Category but \Smile\ElasticsuiteVirtualCategory\Model\VirtualCategory\Root::getSubtreePathIds() takes \Magento\Catalog\Api\Data\CategoryInterface defined at /code/src/module-elasticsuite-virtual-category/Model/VirtualCategory/Root.php:159
Open

                $categoryIds = $this->virtualCategoryRoot->getSubtreePathIds($appliedRoot, $category);
Severity
Category
Status
Source
Language