Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-81327 core: Remove unnecessary table filter
The \Traversable interface does not define the `valid` method. Furthermore, the `valid` method actually checks that there is a _next_ value, which requires the value already be fetched and waiting. This is not the case for all Iterators. For example the CallbackFilterIterator does not load the initial value until it is requested. It is completely unnecessary to do this check anyway as an invalid Iterator will just not return any values.
- Loading branch information