Skip to content

Feature/#687 api feedback #380

Feature/#687 api feedback

Feature/#687 api feedback #380

Triggered via pull request March 6, 2024 07:46
Status Failure
Total duration 55s
Artifacts

pr.yaml

on: pull_request
Markdown Lint
6s
Markdown Lint
Changelog should be updated
3s
Changelog should be updated
Matrix: php-cs-fixer
Matrix: psalm
Matrix: test-composer-install
Matrix: test-suite
Matrix: validate-doctrine-schema
Fit to window
Zoom out
Zoom in

Annotations

12 errors
Changelog should be updated
Process completed with exit code 1.
Validate composer (8.3)
Process completed with exit code 2.
ArgumentTypeCoercion: src/DataFixtures/EventFixture.php#L24
src/DataFixtures/EventFixture.php:24:26: ArgumentTypeCoercion: Argument 1 of App\Entity\Event::addPartner expects App\Entity\Organization, but parent type object provided (see https://psalm.dev/193)
ArgumentTypeCoercion: src/DataFixtures/EventFixture.php#L25
src/DataFixtures/EventFixture.php:25:26: ArgumentTypeCoercion: Argument 1 of App\Entity\Event::addPartner expects App\Entity\Organization, but parent type object provided (see https://psalm.dev/193)
ArgumentTypeCoercion: src/Service/Indexing/AbstractIndexingElastic.php#L46
src/Service/Indexing/AbstractIndexingElastic.php:46:46: ArgumentTypeCoercion: Argument 1 of Elastic\Elasticsearch\Client::index expects array{body: array<array-key, mixed>, error_trace: bool, filter_path: list<mixed>, human: bool, id: string, if_primary_term: Elastic\Elasticsearch\Traits\number, if_seq_no: Elastic\Elasticsearch\Traits\number, index: string, op_type: Elastic\Elasticsearch\Traits\enum, pipeline: string, pretty: bool, refresh: Elastic\Elasticsearch\Traits\enum, require_alias: bool, routing: string, source: string, timeout: Elastic\Elasticsearch\Traits\time, version: Elastic\Elasticsearch\Traits\number, version_type: Elastic\Elasticsearch\Traits\enum, wait_for_active_shards: string}, but parent type array{body: array<array-key, mixed>, id: int|null, index: mixed} provided (see https://psalm.dev/193)
ArgumentTypeCoercion: src/Service/Indexing/AbstractIndexingElastic.php#L66
src/Service/Indexing/AbstractIndexingElastic.php:66:47: ArgumentTypeCoercion: Argument 1 of Elastic\Elasticsearch\Client::delete expects array{error_trace: bool, filter_path: list<mixed>, human: bool, id: string, if_primary_term: Elastic\Elasticsearch\Traits\number, if_seq_no: Elastic\Elasticsearch\Traits\number, index: string, pretty: bool, refresh: Elastic\Elasticsearch\Traits\enum, routing: string, source: string, timeout: Elastic\Elasticsearch\Traits\time, version: Elastic\Elasticsearch\Traits\number, version_type: Elastic\Elasticsearch\Traits\enum, wait_for_active_shards: string}, but parent type array{id: int, index: mixed} provided (see https://psalm.dev/193)
InvalidArgument: src/Service/Indexing/AbstractIndexingElastic.php#L118
src/Service/Indexing/AbstractIndexingElastic.php:118:53: InvalidArgument: Argument 1 of Elastic\Elasticsearch\Endpoints\Indices::updateAliases expects array{body: array<array-key, mixed>, error_trace: bool, filter_path: list<mixed>, human: bool, master_timeout: Elastic\Elasticsearch\Endpoints\time, pretty: bool, source: string, timeout: Elastic\Elasticsearch\Endpoints\time}, but array{body: array{actions: list{array{add: array{alias: mixed, index: string}}}}} provided (see https://psalm.dev/004)
InvalidArgument: src/Service/Indexing/AbstractIndexingElastic.php#L192
src/Service/Indexing/AbstractIndexingElastic.php:192:53: InvalidArgument: Argument 1 of Elastic\Elasticsearch\Endpoints\Indices::updateAliases expects array{body: array<array-key, mixed>, error_trace: bool, filter_path: list<mixed>, human: bool, master_timeout: Elastic\Elasticsearch\Endpoints\time, pretty: bool, source: string, timeout: Elastic\Elasticsearch\Endpoints\time}, but array{body: array{actions: list{array{add: array{alias: mixed, index: string}}}}} provided (see https://psalm.dev/004)
InvalidArgument: src/Service/Indexing/AbstractIndexingElastic.php#L329
src/Service/Indexing/AbstractIndexingElastic.php:329:58: InvalidArgument: Argument 1 of Elastic\Elasticsearch\Endpoints\Indices::create expects array{body: array<array-key, mixed>, error_trace: bool, filter_path: list<mixed>, human: bool, index: string, master_timeout: Elastic\Elasticsearch\Endpoints\time, pretty: bool, source: string, timeout: Elastic\Elasticsearch\Endpoints\time, wait_for_active_shards: string}, but array{body: array{mappings: array{dynamic: 'strict', properties: array<array-key, mixed>}, settings: array{number_of_replicas: 0, number_of_shards: 5}}, index: string} provided (see https://psalm.dev/004)
UndefinedInterfaceMethod: src/Service/Indexing/IndexingDailyOccurrences.php#L33
src/Service/Indexing/IndexingDailyOccurrences.php:33:35: UndefinedInterfaceMethod: Method Symfony\Component\Serializer\SerializerInterface::normalize does not exist (see https://psalm.dev/181)
UndefinedInterfaceMethod: src/Service/Indexing/IndexingLocations.php#L32
src/Service/Indexing/IndexingLocations.php:32:36: UndefinedInterfaceMethod: Method Symfony\Component\Serializer\SerializerInterface::normalize does not exist (see https://psalm.dev/181)
UndefinedInterfaceMethod: src/Service/Indexing/IndexingOccurrences.php#L33
src/Service/Indexing/IndexingOccurrences.php:33:36: UndefinedInterfaceMethod: Method Symfony\Component\Serializer\SerializerInterface::normalize does not exist (see https://psalm.dev/181)