Prevent search index creation with dynamic: false
and empty fields
mapping
#1510
static-analysis.yml
on: pull_request
Matrix: Static Analysis with PHPStan
Annotations
2 errors
Static Analysis with PHPStan (8.2):
tests/Doctrine/ODM/MongoDB/Tests/Mapping/ClassMetadataTest.php#L981
Parameter #1 $definition of method Doctrine\ODM\MongoDB\Mapping\ClassMetadata<stdClass>::addSearchIndex() expects array{mappings: array{dynamic?: bool, fields?: array}, analyzer?: string, searchAnalyzer?: string, analyzers?: array, storedSource?: array{exclude: array<int, string>}|array{include: array<int, string>}|bool, synonyms?: array<int, array{analyzer: string, name: string, source: array{collection: string}}>}, array{} given.
|
Static Analysis with PHPStan (8.2)
Process completed with exit code 1.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
composer-lock-static-analysis-phpstan
Expired
|
19.1 KB |
|