Skip to content

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

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

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

Triggered via pull request October 16, 2024 13:57
Status Failure
Total duration 50s
Artifacts 1

static-analysis.yml

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

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
19.1 KB