PHPLIB-955: Require PHP 8.1 #1600
Annotations
9 errors
MixedMethodCall:
src/Operation/Aggregate.php#L191
src/Operation/Aggregate.php:191:72: MixedMethodCall: Cannot determine the type of $options['readConcern'] when calling method isDefault (see https://psalm.dev/015)
|
MixedMethodCall:
src/Operation/Aggregate.php#L195
src/Operation/Aggregate.php:195:74: MixedMethodCall: Cannot determine the type of $options['writeConcern'] when calling method isDefault (see https://psalm.dev/015)
|
RiskyTruthyFalsyComparison:
src/Operation/Aggregate.php#L203
src/Operation/Aggregate.php:203:72: RiskyTruthyFalsyComparison: Operand of type false|mixed contains type mixed, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
MixedMethodCall:
src/Operation/InsertOne.php#L90
src/Operation/InsertOne.php:90:74: MixedMethodCall: Cannot determine the type of $options['writeConcern'] when calling method isDefault (see https://psalm.dev/015)
|
MixedArgument:
src/Operation/InsertOne.php#L94
src/Operation/InsertOne.php:94:62: MixedArgument: Argument 2 of MongoDB\Operation\InsertOne::validateDocument cannot be mixed|null, expecting MongoDB\Codec\DocumentCodec<object>|null (see https://psalm.dev/030)
|
MixedMethodCall:
src/Operation/MapReduce.php#L214
src/Operation/MapReduce.php:214:72: MixedMethodCall: Cannot determine the type of $options['readConcern'] when calling method isDefault (see https://psalm.dev/015)
|
MixedMethodCall:
src/Operation/MapReduce.php#L218
src/Operation/MapReduce.php:218:74: MixedMethodCall: Cannot determine the type of $options['writeConcern'] when calling method isDefault (see https://psalm.dev/015)
|
MixedMethodCall:
src/Operation/MapReduce.php#L231
src/Operation/MapReduce.php:231:66: MixedMethodCall: Cannot determine the type of $options['finalize'] when calling method getScope (see https://psalm.dev/015)
|
Psalm
Process completed with exit code 2.
|