Skip to content

PHPLIB-1419 Encode Agg builder objects in Collection methods #1636

PHPLIB-1419 Encode Agg builder objects in Collection methods

PHPLIB-1419 Encode Agg builder objects in Collection methods #1636

Triggered via pull request September 10, 2024 09:09
Status Failure
Total duration 1m 21s
Artifacts

static-analysis.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
MixedAssignment: src/Client.php#L125
src/Client.php:125:9: MixedAssignment: Unable to determine the type that $this->builderEncoder is being assigned to (see https://psalm.dev/032)
MixedAssignment: src/Collection.php#L222
src/Collection.php:222:9: MixedAssignment: Unable to determine the type that $pipeline is being assigned to (see https://psalm.dev/032)
MixedArgument: src/Collection.php#L223
src/Collection.php:223:58: MixedArgument: Argument 1 of MongoDB\is_last_pipeline_operator_write cannot be mixed, expecting array<array-key, mixed> (see https://psalm.dev/030)
MixedAssignment: src/Collection.php#L287
src/Collection.php:287:9: MixedAssignment: Unable to determine the type that $filter is being assigned to (see https://psalm.dev/032)
MixedArgument: src/Collection.php#L290
src/Collection.php:290:76: MixedArgument: Argument 3 of MongoDB\Operation\Count::__construct cannot be mixed, expecting array<array-key, mixed>|object (see https://psalm.dev/030)
MixedAssignment: src/Collection.php#L309
src/Collection.php:309:9: MixedAssignment: Unable to determine the type that $filter is being assigned to (see https://psalm.dev/032)
MixedArgument: src/Collection.php#L312
src/Collection.php:312:85: MixedArgument: Argument 3 of MongoDB\Operation\CountDocuments::__construct cannot be mixed, expecting array<array-key, mixed>|object (see https://psalm.dev/030)
MixedAssignment: src/Collection.php#L447
src/Collection.php:447:9: MixedAssignment: Unable to determine the type that $filter is being assigned to (see https://psalm.dev/032)
MixedArgument: src/Collection.php#L450
src/Collection.php:450:81: MixedArgument: Argument 3 of MongoDB\Operation\DeleteMany::__construct cannot be mixed, expecting array<array-key, mixed>|object (see https://psalm.dev/030)
MixedAssignment: src/Collection.php#L469
src/Collection.php:469:9: MixedAssignment: Unable to determine the type that $filter is being assigned to (see https://psalm.dev/032)