NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #127 most downloaded on Packagist
Collection of value objects that represent the PHP code units
Latest stable
3.0.3
Last release 2 years ago
no release in 18 months
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
7 years old
14 releases · first in 2020
Drag across the ruler to compare, or tap a release to open it.
Fixed #9 : Mapper::stringToCodeUnits('Foo::bar') does not find method Foo::bar when a function named \bar is defined
Mapper::stringToCodeUnits('Foo::bar') does not find method Foo::bar when a function named \bar is definedFixed #8 : Mapper::stringToCodeUnits() does not consider "inheritance" between traits
Mapper::stringToCodeUnits() does not consider "inheritance" between traitsYour coding agent can read these notes before it upgrades. Set up the MCP server →
This project now uses PHPStan instead of Psalm for static analysis
This component is no longer supported on PHP 8.1
Added SebastianBergmann\CodeUnit\FileUnit value object that represents a sourcecode file
SebastianBergmann\CodeUnit\FileUnit value object that represents a sourcecode fileSebastianBergmann\CodeUnit\CodeUnitCollection::fromArray() has been removedSebastianBergmann\CodeUnit\Mapper::stringToCodeUnits() no longer supports ClassName<*>SebastianBergmann\CodeUnit\Exception now correctly extends \Throwable
SebastianBergmann\CodeUnit\Exception now correctly extends \ThrowableSebastianBergmann\CodeUnit\Mapper::stringToCodeUnits() no longer attempts to create CodeUnit objects for code units that are not declared in userland
SebastianBergmann\CodeUnit\Mapper::stringToCodeUnits() no longer attempts to create CodeUnit objects for code units that are not declared in userlandChanged PHP version constraint in composer.json from ^7.3 || ^8.0 to >=7.3
composer.json from ^7.3 || ^8.0 to >=7.3### Fixed * #3: Regression in 1.0.4
This component is now supported on PHP 8
Tests etc. are now ignored for archive exports
Mapper::stringToCodeUnits() raised the wrong exception for Class::method when a class named Class exists but does not have a method named method
Mapper::stringToCodeUnits() raised the wrong exception for Class::method when a class named Class exists but does not have a method named method### Fixed * #2: Mapper::stringToCodeUnits() breaks when ClassName is used for class that extends built-in class
Mapper::stringToCodeUnits() breaks when ClassName<extended> is used for class that extends built-in class[3.0.3]: https://github.com/sebastianbergmann/code-unit/compare/3.0.2...3.0.3 [3.0.2]: https://github.com/sebastianbergmann/code-unit/compare/3.0.1...
One column per quarter.