Prevent search index creation with dynamic: false
and empty fields
mapping
#1501
static-analysis.yml
on: pull_request
Matrix: Static Analysis with PHPStan
Matrix: Static Analysis with Psalm
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
Expired
|
23.7 KB |
|
composer-lock-static-analysis-psalm
Expired
|
23.7 KB |
|