Releases: phpDocumentor/Reflection
Releases · phpDocumentor/Reflection
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-install
by @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
declare
before 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
InvalidTag
containing the exception causing the reason why this could not be properly parsed.
4.0.0-beta2
New features
- Now supports global constants defined using either the
const
orglobal
keyword - Now supports Typed Properties (PHP 7.4 feature)
- Now supports visibility for class constants (private, protected, public)
BC-break since 4.0.0-beta
- factory \phpDocumentor\Reflection\Php\Factory\Constant was renamed to \phpDocumentor\Reflection\Php\Factory\ClassConstant; this only matters if you build your own ProjectFactory with non-default strategies set.
- \phpDocumentor\Reflection\Middleware\Middleware its execute function is now typehinted and the result must be an
object
.
Bug fixes & improvements
- Build pipeline is now in Github Actions
- More automated tests have been added to increase coverage to 90%
4.0.0-beta
First beta release of this series. With a massive performance fix. Which reduces the parsing time with 50%.