Skip to content

PHPLIB-1627: BulkWriteCommand API #2384

PHPLIB-1627: BulkWriteCommand API

PHPLIB-1627: BulkWriteCommand API #2384

Triggered via pull request March 19, 2025 17:25
Status Failure
Total duration 1m 32s
Artifacts

static-analysis.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
MixedAssignment: src/BulkWriteCommandBuilder.php#L57
src/BulkWriteCommandBuilder.php:57:9: MixedAssignment: Unable to determine the type that $filter is being assigned to (see https://psalm.dev/032)
MixedArgument: src/BulkWriteCommandBuilder.php#L67
src/BulkWriteCommandBuilder.php:67:63: MixedArgument: Argument 2 of MongoDB\Driver\BulkWriteCommand::deleteMany cannot be mixed, expecting array<array-key, mixed>|object (see https://psalm.dev/030)
MixedAssignment: src/BulkWriteCommandBuilder.php#L74
src/BulkWriteCommandBuilder.php:74:9: MixedAssignment: Unable to determine the type that $filter is being assigned to (see https://psalm.dev/032)
MixedArgument: src/BulkWriteCommandBuilder.php#L84
src/BulkWriteCommandBuilder.php:84:62: MixedArgument: Argument 2 of MongoDB\Driver\BulkWriteCommand::deleteOne cannot be mixed, expecting array<array-key, mixed>|object (see https://psalm.dev/030)
PossiblyInvalidArgument: src/BulkWriteCommandBuilder.php#L92
src/BulkWriteCommandBuilder.php:92:46: PossiblyInvalidArgument: Argument 1 of MongoDB\Codec\DocumentCodec::encode expects object, but possibly different type array<array-key, mixed>|object provided (see https://psalm.dev/092)
MixedAssignment: src/BulkWriteCommandBuilder.php#L96
src/BulkWriteCommandBuilder.php:96:9: MixedAssignment: Unable to determine the type that $id is being assigned to (see https://psalm.dev/032)
MixedAssignment: src/BulkWriteCommandBuilder.php#L103
src/BulkWriteCommandBuilder.php:103:9: MixedAssignment: Unable to determine the type that $filter is being assigned to (see https://psalm.dev/032)
PossiblyInvalidArgument: src/BulkWriteCommandBuilder.php#L106
src/BulkWriteCommandBuilder.php:106:49: PossiblyInvalidArgument: Argument 1 of MongoDB\Codec\DocumentCodec::encode expects object, but possibly different type array<array-key, mixed>|object provided (see https://psalm.dev/092)
MixedArgument: src/BulkWriteCommandBuilder.php#L138
src/BulkWriteCommandBuilder.php:138:63: MixedArgument: Argument 2 of MongoDB\Driver\BulkWriteCommand::replaceOne cannot be mixed, expecting array<array-key, mixed>|object (see https://psalm.dev/030)
MixedAssignment: src/BulkWriteCommandBuilder.php#L145
src/BulkWriteCommandBuilder.php:145:9: MixedAssignment: Unable to determine the type that $filter is being assigned to (see https://psalm.dev/032)