Skip to content

Fix "Cannot use object of type stdClass as array" in search index drop #1500

Fix "Cannot use object of type stdClass as array" in search index drop

Fix "Cannot use object of type stdClass as array" in search index drop #1500

Triggered via pull request October 14, 2024 08:54
Status Failure
Total duration 1m 6s
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

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