Skip to content

PHPLIB-1627: BulkWriteCommand API #2396

PHPLIB-1627: BulkWriteCommand API

PHPLIB-1627: BulkWriteCommand API #2396

Triggered via pull request March 22, 2025 00:44
Status Failure
Total duration 1m 41s
Artifacts

static-analysis.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
MixedAssignment: src/BulkWriteCommandBuilder.php#L72
src/BulkWriteCommandBuilder.php:72:9: MixedAssignment: Unable to determine the type that $filter is being assigned to (see https://psalm.dev/032)
MixedArgument: src/BulkWriteCommandBuilder.php#L82
src/BulkWriteCommandBuilder.php:82: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#L89
src/BulkWriteCommandBuilder.php:89:9: MixedAssignment: Unable to determine the type that $filter is being assigned to (see https://psalm.dev/032)
MixedArgument: src/BulkWriteCommandBuilder.php#L99
src/BulkWriteCommandBuilder.php:99: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#L107
src/BulkWriteCommandBuilder.php:107: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#L111
src/BulkWriteCommandBuilder.php:111:9: MixedAssignment: Unable to determine the type that $id is being assigned to (see https://psalm.dev/032)
MixedAssignment: src/BulkWriteCommandBuilder.php#L118
src/BulkWriteCommandBuilder.php:118:9: MixedAssignment: Unable to determine the type that $filter is being assigned to (see https://psalm.dev/032)
PossiblyInvalidArgument: src/BulkWriteCommandBuilder.php#L121
src/BulkWriteCommandBuilder.php:121: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#L153
src/BulkWriteCommandBuilder.php:153: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#L160
src/BulkWriteCommandBuilder.php:160:9: MixedAssignment: Unable to determine the type that $filter is being assigned to (see https://psalm.dev/032)