Smile-SA/elasticsuite

View on GitHub

Showing 1,375 of 1,375 total issues

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

                $this->virtualCategoryRoot->getAppliedRootCategory(),

syntax error, unexpected ')'
Open

        );

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

        $this->query     = $query;

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 (method returning '\Smile\ElasticsuiteCore\Search\Request\Query\Span\SpanFirst' 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

Doc-block of $name in __construct is phpdoc param type string which is not a permitted replacement of the nullable param type ?string declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

     * @param string                                                          $name    Query Name

Suspicious array access to ?mixed
Open

            $terms = array_merge($terms, explode(',', $termData['values']));

syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST)
Open

    private array $checkers;

Assigning array<string></string> to property but \Smile\ElasticsuiteTracker\Model\IndexResolver->indices is \Smile\ElasticsuiteCore\Api\Index\IndexInterface[]|array<string></string>
Open

            $this->indices[$indexName] = null;

Possibly zero references to use statement for classlike/namespace ClientConfigurationInterface (\Smile\ElasticsuiteCore\Api\Client\ClientConfigurationInterface)
Open

use Smile\ElasticsuiteCore\Api\Client\ClientConfigurationInterface;

Suspicious array access to \Magento\Framework\DataObject
Open

                    foreach ($indicesMapping[$item['indexer_id']] as $index) {

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

use Magento\Catalog\Api\Data\CategoryInterface;

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

                $category

Declaration of function getList() : \Smile\ElasticsuiteCatalogOptimizer\Api\Data\OptimizerSearchResultsInterface should be compatible with function getList() : \Smile\ElasticsuiteCatalogOptimizer\Api\Data\OptimizerInterface defined in /code/src/module-elasticsuite-catalog-optimizer/Api/OptimizerRepositoryInterface.php:41
Open

    public function getList()

Argument 1 (categoryId) is string but \Smile\ElasticsuiteCatalog\Model\Autocomplete\Category\ItemFactory::getCategoryNameById() takes int defined at /code/src/module-elasticsuite-catalog/Model/Autocomplete/Category/ItemFactory.php:172
Open

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

Doc-block of $value in getFilterValue contains phpdoc param type mixed which is incompatible with the param type array declared in the signature
Open

     * @param mixed $value Filter value.

Returning type \Magento\Catalog\Api\Data\CategoryAttributeInterface|null but getCategoryNameAttribute() is declared to return \Magento\Eav\Model\Entity\Attribute\AbstractAttribute
Open

        return $this->categoryNameAttribute;

Doc-block of $stringToBoolInputs in stringToBoolConverting is phpdoc param type array which is not a permitted replacement of the nullable param type ?array declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

     * @param array $stringToBoolInputs The inputs

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

use Magento\Store\Model\StoreManagerInterface;

Argument 1 (attribute) is \Magento\Catalog\Model\ResourceModel\Product\Attribute but \Smile\ElasticsuiteCatalog\Search\Request\Product\Aggregation\Provider\FilterableAttributes\Modifier\Statistics\AttributeFilterInterface::filterAttribute() takes \Magento\Catalog\Model\ResourceModel\Eav\Attribute defined at /code/src/module-elasticsuite-catalog/Search/Request/Product/Aggregation/Provider/FilterableAttributes/Modifier/Statistics/AttributeFilterInterface.php:34
Open

                if ($this->attributeFilter->filterAttribute($attribute)) {

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