Skip to content

Prevent search index creation with dynamic: false and empty fields mapping #1501

Prevent search index creation with dynamic: false and empty fields mapping

Prevent search index creation with dynamic: false and empty fields mapping #1501

Triggered via pull request October 14, 2024 09:34
Status Failure
Total duration 1m 10s
Artifacts 2

static-analysis.yml

on: pull_request
Matrix: Static Analysis with PHPStan
Matrix: Static Analysis with Psalm
Fit to window
Zoom out
Zoom in

Annotations

2 errors
InvalidArgument: lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php#L645
lib/Doctrine/ODM/MongoDB/Mapping/Driver/XmlDriver.php:645:32: InvalidArgument: Argument 1 of Doctrine\ODM\MongoDB\Mapping\ClassMetadata::addSearchIndex expects array{analyzer?: string, analyzers?: array<array-key, mixed>, mappings: array{dynamic?: bool, fields?: array<array-key, mixed>}, searchAnalyzer?: string, storedSource?: array{exclude?: list<string>, include?: list<string>}|bool, synonyms?: list<array{analyzer: string, name: string, source: array{collection: string}}>}, but array{analyzer?: null|scalar, mappings: stdClass, searchAnalyzer?: null|scalar, storedSource?: non-empty-array<'exclude'|'include', list<string>>|null|scalar, synonyms?: non-empty-list<array{analyzer: string, name: string, source: array{collection: string}}>} provided (see https://psalm.dev/004)
Static Analysis with Psalm (8.2)
Process completed with exit code 2.

Artifacts

Produced during runtime
Name Size
composer-lock-static-analysis-phpstan
23.7 KB
composer-lock-static-analysis-psalm
23.7 KB