Smile-SA/elasticsuite

View on GitHub

Showing 1,375 of 1,375 total issues

Argument 1 (condition) is \Magento\Framework\Api\ExtensibleDataInterface|\Smile\ElasticsuiteCatalogRule\Api\Data\ConditionInterface but \Smile\ElasticsuiteVirtualCategory\Model\Rule::dataModelToArray() takes \Smile\ElasticsuiteCatalogRule\Model\Data\Condition defined at /code/src/module-elasticsuite-catalog-rule/Model/Rule.php:181
Open

        $this->getConditions()->setConditions([])->loadArray($this->dataModelToArray($condition));

Assigning array<int></int> to property but \Smile\ElasticsuiteVirtualCategory\Model\Rule->instances is \Magento\Catalog\Model\Category[]
Open

            $this->instances[$rootCategoryId][$cacheKey] = $rootCategory;

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

                $productPositions = $this->saveHandler->getProductPositionsByCategory($category);

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

use Magento\Catalog\Api\Data\CategoryInterface;

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

     * @param ScopeConfigInterface $scopeConfig                 Scope Config.

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

     * @param \Magento\Framework\DB\Adapter\AdapterInterface               $connection        Db Connection.

Argument 3 (attributes) is \Magento\Catalog\Model\ResourceModel\Eav\Attribute[] but \Smile\ElasticsuiteCatalog\Search\Request\Product\Aggregation\Provider\FilterableAttributes\ModifierInterface::modifyAttributes() takes \Magento\Catalog\Model\ResourceModel\Product\Attribute[] defined at /code/src/module-elasticsuite-catalog/Search/Request/Product/Aggregation/Provider/FilterableAttributes/ModifierInterface.php:37
Open

            $attributes = $modifier->modifyAttributes($storeId, $this->requestName, $attributes, $query, $filters, $queryFilters);

Possibly zero references to use statement for classlike/namespace EavSetup (\Magento\Eav\Setup\EavSetup)
Open

use Magento\Eav\Setup\EavSetup;

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

use Smile\ElasticsuiteCore\Api\Index\Mapping\FieldInterface;

Doc-block of $fieldFilter in getWeightedSearchProperties is phpdoc param type \Smile\ElasticsuiteCore\Api\Index\Mapping\FieldFilterInterface which is not a permitted replacement of the nullable param type ?\Smile\ElasticsuiteCore\Api\Index\Mapping\FieldFilterInterface declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

     * @param FieldFilterInterface $fieldFilter  A filter applied to fields.

Argument 1 (element) is \Magento\Config\Model\Config\Structure\Element\Field|\Smile\ElasticsuiteCore\Model\Search\Request\RelevanceConfig\FieldInterface|\Smile\ElasticsuiteCore\Model\Search\Request\RelevanceConfig\Structure\Element\Field but \Smile\ElasticsuiteCore\Model\Search\Request\RelevanceConfig\Structure\Element\Visibility::isVisible() takes \Magento\Config\Model\Config\Structure\AbstractElement defined at /code/src/module-elasticsuite-core/Model/Search/Request/RelevanceConfig/Structure/Element/Visibility.php:59
Open

        return $this->visibility->isVisible($this, $this->_scope);

Doc-block of $filter 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 QueryInterface       $filter         Search filter.

Assigning ?array to property but \Smile\ElasticsuiteCore\Search\Request->sortOrders is \Smile\ElasticsuiteCore\Search\Request\SortOrderInterface
Open

        $this->sortOrders = $sortOrders;

Returning type \Smile\ElasticsuiteCore\Search\Request\SortOrderInterface but getSortOrders() is declared to return \Smile\ElasticsuiteCore\Search\Request\SortOrderInterface[]
Open

        return $this->sortOrders;

Returning type string but getCalendarInterval() is declared to return int
Open

        return $this->calendarInterval;

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.

Suspicious array access to null
Open

            $bucketsPath[$paramName] = $path;

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