Skip to content

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

PHPLIB-1249 Init code generator project for aggregation builder

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

Triggered via pull request October 4, 2023 10:18
Status Failure
Total duration 2m 10s
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

10 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)
UndefinedClass: src/Builder/Aggregation.php#L52
src/Builder/Aggregation.php:52:15: UndefinedClass: Class, interface or enum named MongoDB\Builder\Optional does not exist (see https://psalm.dev/019)
UndefinedClass: src/Builder/Aggregation.php#L53
src/Builder/Aggregation.php:53:15: UndefinedClass: Class, interface or enum named MongoDB\Builder\Optional does not exist (see https://psalm.dev/019)
UndefinedClass: src/Builder/Aggregation.php#L58
src/Builder/Aggregation.php:58:48: UndefinedClass: Class, interface or enum named MongoDB\Builder\Optional does not exist (see https://psalm.dev/019)
UndefinedClass: src/Builder/Aggregation.php#L59
src/Builder/Aggregation.php:59:51: UndefinedClass: Class, interface or enum named MongoDB\Builder\Optional does not exist (see https://psalm.dev/019)
MixedInferredReturnType: src/Builder/Aggregation.php#L60
src/Builder/Aggregation.php:60:8: MixedInferredReturnType: Could not verify return type 'MongoDB\Builder\Aggregation\FilterAggregation' for MongoDB\Builder\Aggregation::filter (see https://psalm.dev/047)
UndefinedClass: src/Builder/Aggregation/FilterAggregation.php#L26
src/Builder/Aggregation/FilterAggregation.php:26:12: UndefinedClass: Class, interface or enum named MongoDB\Builder\Optional does not exist (see https://psalm.dev/019)
UndefinedClass: src/Builder/Aggregation/FilterAggregation.php#L27
src/Builder/Aggregation/FilterAggregation.php:27:12: UndefinedClass: Class, interface or enum named MongoDB\Builder\Optional does not exist (see https://psalm.dev/019)
UndefinedClass: src/Builder/Aggregation/FilterAggregation.php#L32
src/Builder/Aggregation/FilterAggregation.php:32:15: UndefinedClass: Class, interface or enum named MongoDB\Builder\Optional does not exist (see https://psalm.dev/019)
UndefinedClass: src/Builder/Aggregation/FilterAggregation.php#L33
src/Builder/Aggregation/FilterAggregation.php:33:15: UndefinedClass: Class, interface or enum named MongoDB\Builder\Optional does not exist (see https://psalm.dev/019)