Fix the index service definition #24
Annotations
7 errors
|
src/Config/Index.php#L56
src/Config/Index.php:56:32: MixedInferredReturnType: Could not verify return type 'Setono\SyliusMeilisearchPlugin\Indexer\IndexerInterface' for Setono\SyliusMeilisearchPlugin\Config\Index::indexer (see https://psalm.dev/047)
|
src/Config/Index.php#L58
src/Config/Index.php:58:16: MixedReturnStatement: Could not infer a return type (see https://psalm.dev/138)
|
src/Controller/Action/SearchAction.php#L46
src/Controller/Action/SearchAction.php:46:52: InvalidArgument: Argument 1 of Setono\SyliusMeilisearchPlugin\Resolver\IndexName\IndexNameResolverInterface::resolve expects Setono\SyliusMeilisearchPlugin\Config\Index|class-string<Setono\SyliusMeilisearchPlugin\Model\IndexableInterface>, but Sylius\Component\Core\Model\ProductInterface::class provided (see https://psalm.dev/004)
|
src/Model/IndexableInterface.php#L9
src/Model/IndexableInterface.php:9:21: MissingReturnType: Method Setono\SyliusMeilisearchPlugin\Model\IndexableInterface::getId does not have a return type (see https://psalm.dev/050)
|
src/Resolver/IndexName/IndexNameResolver.php#L52
src/Resolver/IndexName/IndexNameResolver.php:52:58: PossiblyInvalidArgument: Argument 1 of Setono\SyliusMeilisearchPlugin\Provider\IndexScope\IndexScopeProviderInterface::getFromContext expects Setono\SyliusMeilisearchPlugin\Config\Index, but possibly different type Setono\SyliusMeilisearchPlugin\Config\Index|Setono\SyliusMeilisearchPlugin\Config\Index&Sylius\Component\Resource\Model\ResourceInterface|list<Setono\SyliusMeilisearchPlugin\Config\Index> provided (see https://psalm.dev/092)
|
|
The logs for this run have expired and are no longer available.
Loading