Replace OperatorInterface::getOperator()
with OperatorInterface::NAME
constant
#2131
Annotations
10 errors
Run Psalm:
src/Builder/Encoder/OperatorEncoder.php#L144
src/Builder/Encoder/OperatorEncoder.php:144:69: MixedInferredReturnType: Could not verify return type 'stdClass' for MongoDB\Builder\Encoder\OperatorEncoder::wrap (see https://psalm.dev/047)
|
Run Psalm:
src/Builder/Encoder/OperatorEncoder.php#L147
src/Builder/Encoder/OperatorEncoder.php:147:20: MixedReturnStatement: Could not infer a return type (see https://psalm.dev/138)
|
Run Psalm:
src/Builder/Type/CombinedFieldQuery.php#L67
src/Builder/Type/CombinedFieldQuery.php:67:17: MixedAssignment: Unable to determine the type that $operator is being assigned to (see https://psalm.dev/032)
|
Run Psalm:
src/Builder/Type/CombinedFieldQuery.php#L81
src/Builder/Type/CombinedFieldQuery.php:81:34: MixedArgument: Argument 1 of array_key_exists cannot be array-key|mixed, expecting array-key (see https://psalm.dev/030)
|
Run Psalm:
src/Builder/Type/CombinedFieldQuery.php#L82
src/Builder/Type/CombinedFieldQuery.php:82:96: MixedArgument: Argument 2 of sprintf cannot be array-key|mixed, expecting float|int|object{__tostring()}|string (see https://psalm.dev/030)
|
Run Psalm:
src/Builder/Type/CombinedFieldQuery.php#L85
src/Builder/Type/CombinedFieldQuery.php:85:13: MixedArrayOffset: Cannot access value on variable $seenOperators[$operator] using mixed offset (see https://psalm.dev/031)
|
Run Psalm:
src/Builder/Type/QueryObject.php#L59
src/Builder/Type/QueryObject.php:59:31: MixedArrayOffset: Cannot access value on variable $seenQueryOperators using mixed offset (see https://psalm.dev/031)
|
Run Psalm:
src/Builder/Type/QueryObject.php#L59
src/Builder/Type/QueryObject.php:59:51: UndefinedConstant: Constant MongoDB\Builder\Type\QueryInterface::NAME is not defined (see https://psalm.dev/020)
|
Run Psalm:
src/Builder/Type/QueryObject.php#L60
src/Builder/Type/QueryObject.php:60:140: UndefinedConstant: Constant MongoDB\Builder\Type\QueryInterface::NAME is not defined (see https://psalm.dev/020)
|
Run Psalm:
src/Builder/Type/QueryObject.php#L60
src/Builder/Type/QueryObject.php:60:140: MixedArgument: Argument 2 of sprintf cannot be mixed, expecting float|int|object{__tostring()}|string (see https://psalm.dev/030)
|
Loading