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
Releases
latest 14-
3.0.319 Mar 2025Release notes
Open source →Fixed
- #9:
Mapper::stringToCodeUnits('Foo::bar')does not find methodFoo::barwhen a function named\baris defined
Release notes
Open source →Fixed
- #9:
Mapper::stringToCodeUnits('Foo::bar')does not find methodFoo::barwhen a function named\baris defined
- #9:
-
3.0.212 Dec 2024Release notes
Open source →Fixed
- #8:
Mapper::stringToCodeUnits()does not consider "inheritance" between traits
Release notes
Open source →Fixed
- #8:
Mapper::stringToCodeUnits()does not consider "inheritance" between traits
- #8:
-
3.0.103 Jul 2024Release notes
Open source →Changed
- This project now uses PHPStan instead of Psalm for static analysis
Release notes
Open source →Changed
- This project now uses PHPStan instead of Psalm for static analysis
-
3.0.002 Feb 2024 -
2.0.003 Feb 2023Release notes
Open source →Added
- Added
SebastianBergmann\CodeUnit\FileUnitvalue object that represents a sourcecode file
Removed
SebastianBergmann\CodeUnit\CodeUnitCollection::fromArray()has been removedSebastianBergmann\CodeUnit\Mapper::stringToCodeUnits()no longer supportsClassName<*>- This component is no longer supported on PHP 7.3, PHP 7.4, and PHP 8.0
- Added
-
1.0.826 Oct 2020Release notes
Open source →Fixed
SebastianBergmann\CodeUnit\Exceptionnow correctly extends\Throwable
-
1.0.702 Oct 2020Release notes
Open source →Fixed
SebastianBergmann\CodeUnit\Mapper::stringToCodeUnits()no longer attempts to createCodeUnitobjects for code units that are not declared in userland
-
1.0.628 Sep 2020Release notes
Open source →Changed
- Changed PHP version constraint in
composer.jsonfrom^7.3 || ^8.0to>=7.3
- Changed PHP version constraint in
-
1.0.526 Jun 2020 -
1.0.426 Jun 2020 -
1.0.315 Jun 2020 -
1.0.230 Apr 2020Release notes
Open source →Fixed
Mapper::stringToCodeUnits()raised the wrong exception forClass::methodwhen a class namedClassexists but does not have a method namedmethod
-
1.0.127 Apr 2020Release notes
Open source →Fixed
- #2:
Mapper::stringToCodeUnits()breaks whenClassName<extended>is used for class that extends built-in class
- #2:
-
1.0.030 Mar 2020