Releases: phpDocumentor/Reflection
Releases · phpDocumentor/Reflection
5.3.0
Added
- Add support for constants in enums by @hemberger in #253
- Add constants support for traits by @jaapio in #258
- Add php 8.2 build by @jaapio in #259
Fixed
- Remove unused
psr/logdependency by @jeromegamez in #247 - Update installation example in README.md by @WinterSilence in #249
- Pass missed $priority in ProjectFactory::addStrategy() by @WinterSilence in #251
New Contributors
- @jeromegamez made their first contribution in #247
- @WinterSilence made their first contribution in #249
- @hemberger made their first contribution in #253
Full Changelog: 5.2.0...5.3.0
5.2.0
Fixed
- Error with define if it uses variable in name. #237
Added
- #241 Add start and end file positions to method locations by @LeoVie in #243
- Add expression evaluation for define names. by @jaapio in #245
CI
- Bump phpdocumentor/type-resolver from 1.6.0 to 1.6.1 by @dependabot in #242
- Bump actions/cache from 2.1.7 to 3 by @dependabot in #240
- Migrate phive by @jaapio in #244
New Contributors
Full Changelog: 5.1.1...5.2.0
5.1.1
Fixes
- Detect file-level docblocks when the file is flowing PSR-12. by @jaapio
CI
- Bump phpdocumentor/type-resolver from 1.5.1 to 1.6.0 by @dependabot in #235
- GH Actions: version update for various predefined actions by @jrfnl in #238
Full Changelog: 5.1.0...5.1.1
5.1.0
Added
- GH Actions: turn on tests against PHP 8.1 & various other tweaks by @jrfnl in #210
- Add support for php 8.1 enums by @jaapio in #218
- Add support for readonly properties by @jaapio in #221
- Add has return by reference for function and methods by @arogachev in #231
- Add end location to all applicable elements by @arogachev in #230
- Add support for meta data on element by @jaapio
Fixed
- PHPUnit: update configuration by @jrfnl in #214
- GH Actions: version update for
ramsey/composer-installby @jrfnl in #229 - CS update after upstream changes by @jrfnl in #209
New Contributors
- @jrfnl made their first contribution in #209
- @arogachev made their first contribution in #231
- @marcimat made their first contribution in #233
Full Changelog: 5.0.0...5.1.0
v5.0.1
v5.0.0
This version contains a full rewrite of the way we construct elements. To support features like constructor property promotion we had to redesign the way methods are processed, but also allow factories to produce multiple elements. Which was impossible with the original design.
As a library consumer, this change should not affect your code, unless you were overwriting or extending some of the internal factory classes. To prevent issues for users of this library, we started a new version.
Added
- Constructor promoted properties
- php8 union types
- php8 static type
- php8 mixed type support
4.0.1
4.0.0
4.0.0-beta4
Improvents
- Ignore certain start nodes in a file which allows a
declarebefore a file docblock and processing of files containing a shebang. - Top level if statements are now processed so conditional defined elements can be documented.
Fixes
- Fixed FQSEN generation for defines in global namespace
4.0.0-beta3: Remove custom PrettyPrinter
Improvements
- Strings in default values or constant values are no longer stripped of their quotes and match the pretty-printing rules of PHP Parser. This will allow consumers to more accurately represent values
- Parsing a DocBlock with an invalid tag will no longer result in an exception but instead, generate an object of type
InvalidTagcontaining the exception causing the reason why this could not be properly parsed.