Skip to content

PHPLIB-1597 Accept a $-prefixed string anywhere an expression is accepted #2215

PHPLIB-1597 Accept a $-prefixed string anywhere an expression is accepted

PHPLIB-1597 Accept a $-prefixed string anywhere an expression is accepted #2215

Triggered via pull request January 24, 2025 11:16
Status Failure
Total duration 41s
Artifacts

static-analysis.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
InvalidArgument: src/Builder/Accumulator/AccumulatorAccumulator.php#L101
src/Builder/Accumulator/AccumulatorAccumulator.php:101:31: InvalidArgument: Argument 1 of str_starts_with expects string, but list<mixed> provided (see https://psalm.dev/004)
InvalidArgument: src/Builder/Accumulator/AccumulatorAccumulator.php#L116
src/Builder/Accumulator/AccumulatorAccumulator.php:116:31: InvalidArgument: Argument 1 of str_starts_with expects string, but list<mixed> provided (see https://psalm.dev/004)
PossiblyInvalidArgument: src/Builder/Accumulator/AvgAccumulator.php#L43
src/Builder/Accumulator/AvgAccumulator.php:43:31: PossiblyInvalidArgument: Argument 1 of str_starts_with expects string, but possibly different type MongoDB\BSON\Decimal128|MongoDB\BSON\Int64|MongoDB\Builder\Expression\ResolvesToNumber|float|int|string provided (see https://psalm.dev/092)
PossiblyInvalidArgument: src/Builder/Accumulator/BottomNAccumulator.php#L58
src/Builder/Accumulator/BottomNAccumulator.php:58:31: PossiblyInvalidArgument: Argument 1 of str_starts_with expects string, but possibly different type MongoDB\Builder\Expression\ResolvesToInt|int|string provided (see https://psalm.dev/092)
PossiblyInvalidArgument: src/Builder/Accumulator/CovariancePopAccumulator.php#L48
src/Builder/Accumulator/CovariancePopAccumulator.php:48:31: PossiblyInvalidArgument: Argument 1 of str_starts_with expects string, but possibly different type MongoDB\BSON\Decimal128|MongoDB\BSON\Int64|MongoDB\Builder\Expression\ResolvesToNumber|float|int|string provided (see https://psalm.dev/092)
PossiblyInvalidArgument: src/Builder/Accumulator/CovariancePopAccumulator.php#L53
src/Builder/Accumulator/CovariancePopAccumulator.php:53:31: PossiblyInvalidArgument: Argument 1 of str_starts_with expects string, but possibly different type MongoDB\BSON\Decimal128|MongoDB\BSON\Int64|MongoDB\Builder\Expression\ResolvesToNumber|float|int|string provided (see https://psalm.dev/092)
PossiblyInvalidArgument: src/Builder/Accumulator/CovarianceSampAccumulator.php#L48
src/Builder/Accumulator/CovarianceSampAccumulator.php:48:31: PossiblyInvalidArgument: Argument 1 of str_starts_with expects string, but possibly different type MongoDB\BSON\Decimal128|MongoDB\BSON\Int64|MongoDB\Builder\Expression\ResolvesToNumber|float|int|string provided (see https://psalm.dev/092)
PossiblyInvalidArgument: src/Builder/Accumulator/CovarianceSampAccumulator.php#L53
src/Builder/Accumulator/CovarianceSampAccumulator.php:53:31: PossiblyInvalidArgument: Argument 1 of str_starts_with expects string, but possibly different type MongoDB\BSON\Decimal128|MongoDB\BSON\Int64|MongoDB\Builder\Expression\ResolvesToNumber|float|int|string provided (see https://psalm.dev/092)
PossiblyInvalidArgument: src/Builder/Accumulator/DerivativeAccumulator.php#L57
src/Builder/Accumulator/DerivativeAccumulator.php:57:31: PossiblyInvalidArgument: Argument 1 of str_starts_with expects string, but possibly different type MongoDB\BSON\Decimal128|MongoDB\BSON\Int64|MongoDB\BSON\UTCDateTime|MongoDB\Builder\Expression\ResolvesToDate|MongoDB\Builder\Expression\ResolvesToNumber|float|int|string provided (see https://psalm.dev/092)
PossiblyInvalidArgument: src/Builder/Accumulator/ExpMovingAvgAccumulator.php#L64
src/Builder/Accumulator/ExpMovingAvgAccumulator.php:64:31: PossiblyInvalidArgument: Argument 1 of str_starts_with expects string, but possibly different type MongoDB\BSON\Decimal128|MongoDB\BSON\Int64|MongoDB\Builder\Expression\ResolvesToNumber|float|int|string provided (see https://psalm.dev/092)