Skip to content

ResultSetInterface does not extend Iterator #81

Closed

Description

@tyrsson

See the following.

interface ResultSetInterface extends Traversable, Countable

#80 (review)

Activity

  1. added this to the 0.3.0 milestone on Nov 4, 2025
  2. self-assigned this
    on Nov 4, 2025
  3. added
    enhancementNew feature or request
    qaImprovements in quality assurance of the project
    on Nov 4, 2025
  4. simon-mundy commented on Nov 5, 2025

    @simon-mundy
    Member

    For the sake of consistency within code and also to assist with concrete implementation of TableGatewayInterface, the interface for both ResultSet\ResultsetInterface and Driver\ResultInterface should implement both Countable and Iterator.

    This way we get to use count(), current(), key(), next(), rewind() and valid() and our code quality tools can correctly hint for us.

  5. tyrsson commented on Nov 5, 2025

    @tyrsson
    MemberAuthor

    I thought valid was for FilteringIterator?

  6. simon-mundy commented on Nov 6, 2025

    @simon-mundy
    Member

    It may be but it's also part of Iterator. Do you want me to do a PR for this or are you OK to add to existing repo?

  7. tyrsson commented on Nov 7, 2025

    @tyrsson
    MemberAuthor

    Since we move to semver and minors its always from a PR. Its easier to keep the main repo clean of branches.

  8. tyrsson commented on Nov 7, 2025

    @tyrsson
    MemberAuthor

    Or you can create the branch via the project. This automatically adds it to project tracking which means it will automatically move it to complete when the PR is merged. This way stale branches are not left when they are not removed post merge. That is what I am trying to prevent. There is already several that needs attention.

  9. added a commit that references this issue on Nov 10, 2025
  10. moved this from Todo to Done in @phpdbon Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestqaImprovements in quality assurance of the project

Type

No type

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions