Smile-SA/elasticsuite

View on GitHub

Showing 1,375 of 1,375 total issues

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

        $productIds = $this->productPositionResource->getProductBlacklistByCategory($category);

Returning type float but getMinValue() is declared to return int
Open

        return $minValue;

Argument 2 (categoryIds) is array|null but \Smile\ElasticsuiteCatalog\Model\Category\Indexer\Fulltext\Action\Full::getSearchableCategories() takes string defined at /code/src/module-elasticsuite-catalog/Model/Category/Indexer/Fulltext/Action/Full.php:75
Open

            $categories = $this->getSearchableCategories($storeId, $categoryIds, $lastCategoryId);

Suspicious array access to \Magento\CatalogSearch\Model\Indexer\Fulltext\Action\Full
Open

            $fullActionClass = $this->fullActionPool[$engine];

Doc-block of $stringToBoolInputs in afterStringToBoolConverting 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 Inputs to be converted

Argument 1 (query) is \Magento\Search\Model\Query but \Smile\ElasticsuiteCore\Search\Context::setCurrentSearchQuery() takes \Magento\Search\Model\QueryInterface defined at /code/src/module-elasticsuite-core/Search/Context.php:85
Open

            $this->searchContext->setCurrentSearchQuery($query);

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

use Smile\ElasticsuiteCore\Api\Index\TypeInterface;

float|int passed to foreach instead of array
Open

            foreach ($fields as $fieldName => $field) {

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

use Magento\Analytics\Model\SubscriptionStatusProvider;

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

use Magento\Framework\UrlInterface;

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

     * @param QueryInterface      $filter       Bucket filter.

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

     * @param QueryInterface      $nestedFilter     Nested filter for the bucket.

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

     * @param QueryInterface      $nestedFilter Nested filter for the bucket.

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

Argument 1 (array_arg) is null but \ksort() takes array
Open

            ksort($this->elasticsuiteIndices, SORT_STRING | SORT_NATURAL);

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

use DateTimeInterface;

Default value for \Smile\ElasticsuiteTracker\Api\EventProcessorInterface $eventProcessors can't be array{}
Open

    public function __construct(ResourceModel\EventQueue $resourceModel, $eventProcessors = [])

Returning type \Magento\Framework\DataObject but getAppliedVirtualCategoryRoot() is declared to return \Magento\Catalog\Api\Data\CategoryInterface
Open

        return $this->virtualCategoryRoot->getByUrlKeys($urlKeys);
Severity
Category
Status
Source
Language