Fix "Cannot use object of type stdClass as array" in search index drop #1500
static-analysis.yml
on: pull_request
Matrix: Static Analysis with PHPStan
Matrix: Static Analysis with Psalm
Annotations
3 errors
InvalidArgument:
lib/Doctrine/ODM/MongoDB/SchemaManager.php#L416
lib/Doctrine/ODM/MongoDB/SchemaManager.php:416:92: InvalidArgument: Argument 1 of MongoDB\Collection::listSearchIndexes expects array{name?: string}, but array{typeMap: array{root: 'array'}} with additional array shape fields (typeMap) was provided (see https://psalm.dev/004)
|
InvalidArgument:
lib/Doctrine/ODM/MongoDB/SchemaManager.php#L468
lib/Doctrine/ODM/MongoDB/SchemaManager.php:468:61: InvalidArgument: Argument 1 of MongoDB\Collection::listSearchIndexes expects array{name?: string}, but array{typeMap: array{root: 'array'}} with additional array shape fields (typeMap) was 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 |
|