Skip to content

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

PHPLIB-1249 Init code generator project for aggregation builder

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

Triggered via pull request October 2, 2023 14:10
Status Failure
Total duration 1m 43s
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)
UndefinedDocblockClass: src/Builder/Aggregation.php#L52
src/Builder/Aggregation.php:52:15: UndefinedDocblockClass: Docblock-defined class, interface or enum named MongoDB\Builder\Undefined does not exist (see https://psalm.dev/200)
MismatchingDocblockParamType: src/Builder/Aggregation.php#L52
src/Builder/Aggregation.php:52:15: MismatchingDocblockParamType: Parameter $as has wrong type 'MongoDB\Builder\Expression\ResolvesToString|MongoDB\Builder\Undefined|string', should be 'MongoDB\Builder\Expression\ResolvesToString|MongoDB\Builder\Optional|string' (see https://psalm.dev/141)
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)
UndefinedDocblockClass: src/Builder/Aggregation.php#L53
src/Builder/Aggregation.php:53:15: UndefinedDocblockClass: Docblock-defined class, interface or enum named MongoDB\Builder\Undefined does not exist (see https://psalm.dev/200)
MismatchingDocblockParamType: src/Builder/Aggregation.php#L53
src/Builder/Aggregation.php:53:15: MismatchingDocblockParamType: Parameter $limit has wrong type 'MongoDB\BSON\Int64|MongoDB\Builder\Expression\ResolvesToInt|MongoDB\Builder\Undefined|int', should be 'MongoDB\BSON\Int64|MongoDB\Builder\Expression\ResolvesToInt|MongoDB\Builder\Optional|int' (see https://psalm.dev/141)
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)
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)