Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove compatibility layer for CursorId deprecation #1425

Closed
wants to merge 3 commits into from

Update psalm baseline

b06bffe
Select commit
Loading
Failed to load commit list.
Closed

Remove compatibility layer for CursorId deprecation #1425

Update psalm baseline
b06bffe
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / Psalm succeeded Sep 19, 2024 in 5s

2 new alerts

New alerts in code changed by this pull request

  • 2 notes

See annotations below for details.

View all branch alerts.

Annotations

Check notice on line 84 in src/Model/ChangeStreamIterator.php

See this annotation in the file changed.

Code scanning / Psalm

LessSpecificImplementedReturnType Note

The inherited return type 'Iterator<int, TValue:MongoDB\Model\ChangeStreamIterator as array<array-key, mixed>|object>' for OuterIterator::getInnerIterator is more specific than the implemented return type for MongoDB\Model\ChangeStreamIterator::getinneriterator 'MongoDB\Driver\CursorInterface<TValue:MongoDB\Model\ChangeStreamIterator as array<array-key, mixed>|object>'

Check notice on line 84 in src/Model/ChangeStreamIterator.php

See this annotation in the file changed.

Code scanning / Psalm

InvalidReturnType Note

The declared return type 'MongoDB\Driver\CursorInterface<TValue:MongoDB\Model\ChangeStreamIterator as array<array-key, mixed>|object>' for MongoDB\Model\ChangeStreamIterator::getInnerIterator is incorrect, got 'MongoDB\Driver\CursorInterface&Iterator<int, TValue:MongoDB\Model\ChangeStreamIterator as array<array-key, mixed>|object>'