Skip to content

Releases: phpDocumentor/Reflection

5.1.1

29 Mar 12:55
accb6fe
Compare
Choose a tag to compare

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

04 Jan 21:13
d0fcff5
Compare
Choose a tag to compare

Added

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

Full Changelog: 5.0.0...5.1.0

v5.0.1

08 Aug 10:15
140db68
Compare
Choose a tag to compare

This patch version is addressing a regression on v5 in functionality regarding v4.

Fixed

  • Fixes regression of missing used traits in classes, #208.

v5.0.0

01 Jul 18:12
1b70ad9
Compare
Choose a tag to compare

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

19 Jun 18:31
447928a
Compare
Choose a tag to compare

Fixes

Fix namespace handling for defines and namespaced constants #157, thanks to @dirx

4.0.0

09 Feb 09:48
509e84c
Compare
Choose a tag to compare

Version 4 is a full redesign of this library. There haven't been any changes since the latest beta release.

4.0.0-beta4

07 Feb 16:03
eec8173
Compare
Choose a tag to compare
4.0.0-beta4 Pre-release
Pre-release

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

27 Jan 09:44
ad8b5b1
Compare
Choose a tag to compare

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

11 Jan 06:52
fca9ce5
Compare
Choose a tag to compare
4.0.0-beta2 Pre-release
Pre-release

New features

  • Now supports global constants defined using either the const or global 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

28 Mar 10:44
Compare
Choose a tag to compare
4.0.0-beta Pre-release
Pre-release

First beta release of this series. With a massive performance fix. Which reduces the parsing time with 50%.