Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: php-ds/polyfill
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.7.0
Choose a base ref
...
head repository: php-ds/polyfill
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.0.1
Choose a head ref
  • 5 commits
  • 24 files changed
  • 4 contributors

Commits on Apr 10, 2026

  1. Release 1.6.0 — PHP 8.2+, serialization, and bug fixes

    - Require PHP >= 8.2, PHPUnit 11
    - Implement __serialize/__unserialize on all data structures (Pair, Vector,
      Deque, Stack, Queue, Set, Map, PriorityQueue) for PHP 9.0 readiness
    - Add __clone to Map and PriorityQueue for proper deep cloning
    - Suppress array_sum deprecation warnings on PHP 8.3+
    - Use static return types on Sequence methods (merge, filter, map, reversed,
      slice, sorted) so Vector::merge() correctly returns Vector, etc.
    - Add return types to __toString(): string, __debugInfo(): array
    - Fix Capacity::shouldDecreaseCapacity docblock
    
    Thanks to @simPod, @hopeseekr-contribs, and @Bilge for their contributions.
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    rudi-augment and claude committed Apr 10, 2026
    Configuration menu
    Copy the full SHA
    2e1c133 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2026

  1. Update CONTRIBUTING.md example PHP version

    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    rudi-augment and claude committed Apr 11, 2026
    Configuration menu
    Copy the full SHA
    e1f0e5c View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2026

  1. v2.0.0 — Redesign polyfill for new type system

    Replace v1 types (Vector, Deque, Stack, Queue, PriorityQueue) with Seq
    and Heap. Replace Hashable with Key interface. Make Pair readonly. Add
    functional constructors (seq, map, set, heap). Simplify Map and Set
    internals. Remove Collection and Sequence interfaces.
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    rudi-augment and claude committed Apr 12, 2026
    Configuration menu
    Copy the full SHA
    5f85e4f View commit details
    Browse the repository at this point in the history

Commits on May 17, 2026

  1. Fix function redeclare fatal error

    Closes #113
    SerafimArts authored May 17, 2026
    Configuration menu
    Copy the full SHA
    ddde872 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #114 from SerafimArts/master

    Fix function redeclare fatal error
    rtheunissen authored May 17, 2026
    Configuration menu
    Copy the full SHA
    890702a View commit details
    Browse the repository at this point in the history
Loading