Skip to content

PHPLIB-1489: Handle CursorId deprecations #1583

PHPLIB-1489: Handle CursorId deprecations

PHPLIB-1489: Handle CursorId deprecations #1583

Triggered via pull request July 25, 2024 10:28
Status Failure
Total duration 1m 24s
Artifacts

static-analysis.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors
TooManyArguments: src/ChangeStream.php#L129
src/ChangeStream.php:129:53: TooManyArguments: Too many arguments for MongoDB\Driver\CursorInterface::getId - expecting 0 but saw 1 (see https://psalm.dev/026)
ImplementedReturnTypeMismatch: src/Model/CodecCursor.php#L79
src/Model/CodecCursor.php:79:17: ImplementedReturnTypeMismatch: The inherited return type 'MongoDB\Driver\CursorId' for MongoDB\Driver\CursorInterface::getId is different to the implemented return type for MongoDB\Model\CodecCursor::getid 'MongoDB\BSON\Int64|MongoDB\Driver\CursorId' (see https://psalm.dev/123)
TooManyArguments: src/Model/CodecCursor.php#L95
src/Model/CodecCursor.php:95:31: TooManyArguments: Too many arguments for MongoDB\Driver\Cursor::getId - expecting 0 but saw 1 (see https://psalm.dev/026)
Psalm
Process completed with exit code 2.