Skip to content

v0.20.70

Choose a tag to compare

@lkrms lkrms released this 26 Oct 10:08
· 1516 commits to main since this release
v0.20.70
138d384

Added

  • Add Arrayable interface

Changed

  • Move Iterator namespace from Lkrms\Support to Lkrms
  • Rename iterators:
    • ObjectOrArrayIterator => GraphIterator
    • RecursiveObjectOrArrayIterator => RecursiveGraphIterator
    • RecursiveHasChildrenCallbackIterator => RecursiveCallbackIterator
  • Replicate GraphIterator as MutableGraphIterator and remove MutableIterator implementation from GraphIterator
  • Ditto for RecursiveGraphIterator and RecursiveMutableGraphIterator
  • In graph iterators, throw an exception instead of iterating over unknown Traversable objects
  • FluentIteratorInterface:
    • Extend new Arrayable interface
    • Add optional $preserveKeys parameter to toArray()
    • Rename forEachWhileTrue() to forEachWhile()
  • Clean up File::find()

Fixed

  • Fix Convert::walkRecursive() issue where the wrong inner iterator is returned