Skip to content

PHPLIB-1249 Init code generator project for aggregation builder #949

PHPLIB-1249 Init code generator project for aggregation builder

PHPLIB-1249 Init code generator project for aggregation builder #949

Triggered via pull request October 2, 2023 13:53
Status Failure
Total duration 2m 20s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

static-analysis.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

5 errors
PossiblyInvalidArgument: examples/aggregation-builder.php#L77
examples/aggregation-builder.php:77:34: PossiblyInvalidArgument: Argument 1 of MongoDB\Collection::aggregate expects array<array-key, mixed>, but possibly different type array<array-key, mixed>|stdClass|string provided (see https://psalm.dev/092)
RedundantCondition: src/Builder/BuilderEncoder.php#L69
src/Builder/BuilderEncoder.php:69:22: RedundantCondition: Type array<array-key, mixed> for $value->fields is always isset (see https://psalm.dev/122)
TypeDoesNotContainType: src/Builder/BuilderEncoder.php#L69
src/Builder/BuilderEncoder.php:69:40: TypeDoesNotContainType: Cannot resolve types for $value->fields with type array<array-key, mixed> and !isset assertion (see https://psalm.dev/056)
UnusedBaselineEntry: src/Builder/BuilderEncoder.php#L1
src/Builder/BuilderEncoder.php:0:0: UnusedBaselineEntry: Baseline for issue "MixedAssignment" has 2 extra entries. (see https://psalm.dev/316)
Psalm
Process completed with exit code 2.