PackageTrack
Sign in Get early access

sebastian/code-unit

Collection of value objects that represent the PHP code units

3.0.3 576M downloads/mo #115 most downloaded on composer sebastianbergmann/code-unit

What this package is like to depend on

Last release 1 years ago

19 Mar 2025

Ships unpredictably

gaps range from 1 weeks to 2.3 years

Nearly every release is documented

notes for 14 of 14 stable releases

Nothing withdrawn

no release was ever pulled

6 years old

14 releases · first in 2020

0 releases in the last 12 months

see the full history below

Release timeline

14 releases · Mar 2020 to Mar 2025
2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 14
  1. 3.0.3 19 Mar 2025
    Release notes

    Fixed

    • #9: Mapper::stringToCodeUnits('Foo::bar') does not find method Foo::bar when a function named \bar is defined
    Open source →
    Release notes

    Fixed

    • #9: Mapper::stringToCodeUnits('Foo::bar') does not find method Foo::bar when a function named \bar is defined
    Open source →
  2. 3.0.2 12 Dec 2024
    Release notes

    Fixed

    • #8: Mapper::stringToCodeUnits() does not consider "inheritance" between traits
    Open source →
    Release notes

    Fixed

    • #8: Mapper::stringToCodeUnits() does not consider "inheritance" between traits
    Open source →
  3. 3.0.1 03 Jul 2024
    Release notes

    Changed

    • This project now uses PHPStan instead of Psalm for static analysis
    Open source →
    Release notes

    Changed

    • This project now uses PHPStan instead of Psalm for static analysis
    Open source →
  4. 3.0.0 02 Feb 2024
    Release notes

    Removed

    • This component is no longer supported on PHP 8.1
    Open source →
  5. 2.0.0 03 Feb 2023
    Release notes

    Added

    • Added SebastianBergmann\CodeUnit\FileUnit value object that represents a sourcecode file

    Removed

    • SebastianBergmann\CodeUnit\CodeUnitCollection::fromArray() has been removed
    • SebastianBergmann\CodeUnit\Mapper::stringToCodeUnits() no longer supports ClassName<*>
    • This component is no longer supported on PHP 7.3, PHP 7.4, and PHP 8.0
    Open source →
  6. 1.0.8 26 Oct 2020
    Release notes

    Fixed

    • SebastianBergmann\CodeUnit\Exception now correctly extends \Throwable
    Open source →
  7. 1.0.7 02 Oct 2020
    Release notes

    Fixed

    • SebastianBergmann\CodeUnit\Mapper::stringToCodeUnits() no longer attempts to create CodeUnit objects for code units that are not declared in userland
    Open source →
  8. 1.0.6 28 Sep 2020
    Release notes

    Changed

    • Changed PHP version constraint in composer.json from ^7.3 || ^8.0 to >=7.3
    Open source →
  9. 1.0.5 26 Jun 2020
    Release notes

    Fixed

    • #3: Regression in 1.0.4
    Open source →
  10. 1.0.4 26 Jun 2020
    Release notes

    Added

    • This component is now supported on PHP 8
    Open source →
  11. 1.0.3 15 Jun 2020
    Release notes

    Changed

    • Tests etc. are now ignored for archive exports
    Open source →
  12. 1.0.2 30 Apr 2020
    Release notes

    Fixed

    • Mapper::stringToCodeUnits() raised the wrong exception for Class::method when a class named Class exists but does not have a method named method
    Open source →
  13. 1.0.1 27 Apr 2020
    Release notes

    Fixed

    • #2: Mapper::stringToCodeUnits() breaks when ClassName<extended> is used for class that extends built-in class
    Open source →
  14. 1.0.0 30 Mar 2020
    Release notes
    • Initial release
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive