Smile-SA/elasticsuite

View on GitHub

Showing 1,375 of 1,375 total issues

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

Suspicious array access to null
Open

                $this->indicesStats[$indexName] = current($indexStatsResponse['indices']);

Assigning array<string>|array<string></string></string> to property but \Smile\ElasticsuiteIndices\Model\IndexStatsProvider->indicesStats is null
Open

                $this->indicesStats[$indexName] = current($indexStatsResponse['indices']);

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

                $this->indicesStats = [];

Class \Smile\ElasticsuiteIndices\Model\ResourceModel\Index\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) {

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, SessionIndexInterface::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

            null,

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

        return $this->useStorePositionsAttribute;

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

        return json_encode($productPositions, JSON_FORCE_OBJECT);

Returning type null but getSubtreeBreadcrumbPath() is declared to return array
Open

        return $this->categoryPath;

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

Assigning false[]|int[]|null[]|string[] to property but \Smile\ElasticsuiteIndices\Model\IndexStatsProvider->elasticsuiteIndices is null
Open

                    $this->elasticsuiteIndices[$name] = $aliases ? key($aliases['aliases']) : null;

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

use Magento\Framework\Data\Form;

Possibly zero references to use statement for classlike/namespace Factory (\Smile\ElasticsuiteCore\Search\Request\ContainerConfiguration\RelevanceConfig\Factory)
Open

use Smile\ElasticsuiteCore\Search\Request\ContainerConfiguration\RelevanceConfig\Factory;

Possibly zero references to use statement for classlike/namespace Navigation (\Smile\ElasticsuiteCatalog\Block\Navigation)
Open

use Smile\ElasticsuiteCatalog\Block\Navigation;

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

use Magento\Catalog\Model\Category;

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

     * @param RequestInterface          $request                  HTTP Request.
Severity
Category
Status
Source
Language