-
Couldn't load subscription status.
- Fork 13
- Update MongoDB library to v2.1 and adjust Composer dependency #43
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
Conversation
- Update Dockerfile with MongoDB extension v2.1.1 - Implement CursorInterface mock for improved test compatibility - Refactor `all` method in `MongoTransport` to return `\Traversable`
| } | ||
|
|
||
| public function all(int $limit = null): iterable | ||
| public function all(int $limit = null): \Traversable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ListableReceiverInterface is defined with iterable. Why not keeping iterable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
8.2.0 The type of iterator has been widened from Traversable to Traversable|array.
Before 8.2 should be \Traversable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MongoTransportTest uses $collection = iterator_to_array($transport->all(2));
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still i don't get why MongoTransport should not respect the interface it implements.
| } | ||
|
|
||
| /** | ||
| * Zwraca prosty kursor zgodny z MongoDB\Driver\CursorInterface, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't forget to remove the comments
|
I decided to make a new pull request (#45) where I implemented most of the changes you made in this pull request because I had to make several more updates. |
allmethod inMongoTransportto return\Traversable