Smile-SA/elasticsuite

View on GitHub

Showing 1,375 of 1,375 total issues

Argument 1 (indexName) is array{index:string} but \Smile\ElasticsuiteCore\Api\Client\ClientInterface::indexStats() takes string defined at /code/src/module-elasticsuite-core/Api/Client/ClientInterface.php:192
Open

            $this->indexStatsCache[$indexName] = $this->client->indexStats(['index' => $indexName]);

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

use Magento\Directory\Model\PriceCurrency;

Suspicious array access to nullable ?array
Open

        $this->viewMoreContext->setFilterName($args['filterName']);

Call with 1 arg(s) to \Smile\ElasticsuiteCatalogOptimizer\Api\Data\OptimizerInterface::getConfig() which only takes 0 arg(s) defined at /code/src/module-elasticsuite-catalog-optimizer/Api/Data/OptimizerInterface.php:127
Open

            'weight' => 1 + ((float) $optimizer->getConfig('constant_score_value') / 100),

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

use Magento\Framework\Controller\ResultInterface;

Possibly zero references to use statement for classlike/namespace AbstractDb (\Magento\Framework\Model\ResourceModel\Db\AbstractDb)
Open

use Magento\Framework\Model\ResourceModel\Db\AbstractDb;

Argument 1 (attribute) is \Magento\Catalog\Model\ResourceModel\Eav\Attribute 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

        return $this->mappingHelper->getFilterField($attribute);

Argument 1 (searchCriteria) is \Magento\Framework\Api\Search\SearchCriteriaInterface but \Smile\ElasticsuiteCore\Model\Search\RequestBuilder::getRequest() takes \Smile\ElasticsuiteCore\Api\Search\SearchCriteriaInterface defined at /code/src/module-elasticsuite-core/Model/Search/RequestBuilder.php:96
Open

        $searchRequest  = $this->searchRequestBuilder->getRequest($searchCriteria);

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  Query part of the filtered query.

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

use Magento\Framework\Phrase;

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 \Magento\Framework\Search\Request\QueryInterface $filter Filter part of the filtered query.

Call with 1 arg(s) to \Smile\ElasticsuiteCatalogOptimizer\Api\Data\OptimizerInterface::getConfig() which only takes 0 arg(s) defined at /code/src/module-elasticsuite-catalog-optimizer/Api/Data/OptimizerInterface.php:127
Open

        $scaleFactor = (float) $optimizer->getConfig('scale_factor');

Returning type \Magento\Framework\Pricing\Render but getPriceRenderer() is declared to return \Magento\Framework\View\Element\BlockInterface|bool
Open

        return $this->priceRenderer;

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

        $fullActionClass = $this->fullActionPool['default'];

Possibly zero references to use statement for classlike/namespace StockConfigurationInterface (\Magento\CatalogInventory\Api\StockConfigurationInterface)
Open

use Magento\CatalogInventory\Api\StockConfigurationInterface;

Saw a token Phan may have failed to parse after '* @return array()': after array, saw '('
Open

     * @return array()

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

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

Assigning \Magento\Framework\App\Config\Scope\Converter to property but \Smile\ElasticsuiteCore\Model\Search\Request\RelevanceConfig\Reader\ContainerStore->converter is \Magento\Store\Model\Config\Converter
Open

        $this->converter = $converter;

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

        return $this->fixedInterval;

Saw unextractable annotation for comment '* @param @param string $scopeCode The scope code'
Open

     * @param @param string $scopeCode The scope code
Severity
Category
Status
Source
Language