Skip to content

Unreliable isReliable check due to usage of next() #11

Closed
@rarentsenvisymo

Description

@rarentsenvisymo

Hello, we noticed something weird with your library. When calling isReliable() more than once (it depends on how many scores there are), it will sometimes return a different boolean than before making it... unreliable :). This happens due to the usage of next($this->score). It advances the internal pointer of the array. I am not sure on how it should work, there are no test cases for the 24% minimum, otherwise I would have created a merge request. Can you fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions