Smile-SA/elasticsuite

View on GitHub

Showing 1,300 of 1,300 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));

Argument 1 (product) is \Magento\Catalog\Model\Product but \Smile\ElasticsuiteVirtualCategory\Model\Url::getProductRequestPath() takes \Smile\ElasticsuiteVirtualCategory\Model\Product defined at /code/src/module-elasticsuite-virtual-category/Model/Url.php:170
Open

                $requestPath = $this->urlModel->getProductRequestPath($product, $category);

Argument 2 (productIds) is ?array|?array{} but \Smile\ElasticsuiteCatalog\Model\Product\Indexer\Fulltext\Action\Full::getSearchableProducts() takes string defined at /code/src/module-elasticsuite-catalog/Model/Product/Indexer/Fulltext/Action/Full.php:83
Open

            $products = $this->getSearchableProducts($storeId, $productIds, $productId);

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

        return $this->categoryNameAttribute;

Argument 1 (attribute) is \Magento\Catalog\Api\Data\ProductAttributeInterface but \Smile\ElasticsuiteCatalog\Helper\ProductAttribute::getFilterField() takes \Magento\Eav\Model\Entity\Attribute\AttributeInterface defined at /code/src/module-elasticsuite-catalog/Helper/AbstractAttribute.php:338
Open

            $field     = $this->mappingHelper->getFilterField($attribute);

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

use Magento\Framework\App\ObjectManager;

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

    private string $field;

Argument 1 (time) is \DateTime|\DateTimeInterface|false but \DateTime::__construct() takes ?string
Open

                    $day   = new DateTime($indexDate);

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     Database Connection

Doc-block of getRequestPath has declared return type string which is not a permitted replacement of the nullable return type ?string declared in the signature ('?T' should be documented as 'T|null' or '?T')
Open

     * @return string

Possibly zero references to use statement for classlike/namespace IndexerCollection (\Magento\Indexer\Model\Indexer\Collection)
Open

use Magento\Indexer\Model\Indexer\Collection as IndexerCollection;

Possibly zero references to use statement for classlike/namespace Front (\Magento\Catalog\Block\Adminhtml\Product\Attribute\Edit\Tab\Front)
Open

use Magento\Catalog\Block\Adminhtml\Product\Attribute\Edit\Tab\Front;

Suspicious array access to ?mixed
Open

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

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;

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

        return $this->useStorePositionsAttribute;

Suspicious array access to \Magento\Framework\DataObject
Open

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

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

     * @param \Magento\Framework\Data\Collection\AbstractDb           $resourceCollection Magento Collection

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

use Magento\Framework\Exception\InputException;

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

    private array $checkers;

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

use Smile\ElasticsuiteCore\Search\Request\Query\QueryFactory;
Severity
Category
Status
Source
Language