Smile-SA/elasticsuite

View on GitHub

Showing 1,375 of 1,375 total issues

Argument 1 (store) is \Magento\Store\Model\StoreManagerInterface but \Smile\ElasticsuiteIndices\Model\ResourceModel\StoreIndices\Collection::prepareItem() takes \Magento\Store\Api\Data\StoreInterface defined at /code/src/module-elasticsuite-indices/Model/ResourceModel/StoreIndices/Collection.php:94
Open

                $item = $this->prepareItem($store, $indexName);

Possibly zero references to use statement for classlike/namespace Event (\Composer\EventDispatcher\Event)
Open

use Composer\EventDispatcher\Event;

Possibly zero references to use statement for classlike/namespace QueryFactory (\Smile\ElasticsuiteCore\Search\Request\Query\QueryFactory)
Open

use Smile\ElasticsuiteCore\Search\Request\Query\QueryFactory;

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

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

     * @param \Magento\Framework\Search\Request\QueryInterface $query     Nested query.

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

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

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

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

syntax error, unexpected '\' (T_NS_SEPARATOR), expecting function (T_FUNCTION) or const (T_CONST)
Open

    private \Magento\Backend\Model\Auth\Session $authSession;

Possibly zero references to use statement for classlike/namespace DateTime (\DateTime)
Open

use DateTime;

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

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

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

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

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

    private string $field;

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

        $this->storeManager   = $storeManager;

Possibly zero references to use statement for classlike/namespace Value (\Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Response\Aggregation\Value)
Open

use Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Response\Aggregation\Value;

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

     * @param Config                    $categoryConfig           Category config.
Severity
Category
Status
Source
Language