Skip to content

Releases: phpDocumentor/ReflectionDocBlock

5.4.1

21 May 06:02
9d07b3f
Compare
Choose a tag to compare

Address multiple bugs with long tag descriptions

In the previous release a regression was introduced regarding multiline tag descriptions. Part of the description was lost and the indenting wasn't reduced as we did before 5.4. If your application relies on docblock tags and uses the descriptions it is highly recommended to update immediately. And block version 5.4.0 from the allowed versions in your composer.json

   "conflict":
      "phpdocumentor/reflection-docblock": "5.4.0"

Thanks to #365 by @szepeviktor and @IanDelMar

  • Bugfix: resolve issue with multiline descriptions by @jaapio in #367
  • Bugfix: docblock tag descriptions by @jaapio in #370

Full Changelog: 5.4.0...5.4.1

5.4.0

11 Apr 16:29
298d2fe
Compare
Choose a tag to compare

More type support

Since the beginning of this package we have been working on our own parser. Mostly regular expressions spitting each part of a docblock and processing them separately in each tag. But since static analyzers became more popular it became a lot harder to cover all the new formats of types. In type-resolver 1.7 we already started using phpstan's parser to process types. And now in this release we also cover parts of the docblock parsing process with their parser. This will make it easier to keep up with all the new changes and allows us to support more complex type formats.

We do not support all types covered by phpstan. Generics are not fully supported on all notations, we will return an InvalidTag in those cases.

Deprecations

Param tag

We spend a lot of time to cover all the edge cases that we supported in docblocks for many years. However we also noticed that some notations do not really make sense. First notation added to the list is a @param tag without a variable.

@param MyType Here starts the description but $var is ommited

This notation is now deprecated, and support will be removed in the first release of v6.

Static factory interface

We introduced a new factory strategy to make it possible to have more complex factories for tags and keep the implementation simple. Due to this new system of creating tags we can now support external parser to cover the body of a tag to be handled. With this new system the older system of StaticFactories has become deprecated. And will be removed in v6.

Backward compatibility

We introduced all new functionality with backward compatibility in mind. There are no interface changes being made so consumers of the library will not notice anything from the internal changes. However since we introduced a large amount of new types you might notice issues depending on your implementation. Especially when your project reads the types provided by this library.

Other notable changes

New Contributors

Full Changelog: 5.3.0...5.4.0

5.3.0

19 Oct 17:50
622548b
Compare
Choose a tag to compare

Added

  • Get tags with type by name by @voku in #260

Deprecated

  • Nothing

Fixed

  • Tests: fix typo in test method name by @jrfnl in #279
  • Tests: fix incorrect namespace by @jrfnl in #280
  • Docblock/Tags/Author: fix typo in method docblock by @jrfnl in #283
  • Tests: fix missing @covers tag by @jrfnl in #286
  • Tests: mark test without assertions as such by @jrfnl in #285
  • GH Actions: allow for manually triggering a workflow by @jrfnl in #281
  • GH Actions: simplify Composer caching by @jrfnl in #282
  • Composer: fix autoload-dev directive by @jrfnl in #289
  • DocBlock/Tags/Source: remove redundant code by @jrfnl in #288
  • Improve line-endings for windows. by @jaapio in #296
  • Fix undefined index by @villfa in #298
  • PHPUnit: update configuration by @jrfnl in #303
  • Phive: upgrade used version of PHPUnit by @jrfnl in #292
  • Remove deprecated StaticMethod and fix comment by @kea in #306

Removed

  • Nothing

Security

  • Nothing

New Contributors

Full Changelog: 5.2.2...5.3.0

5.2.2

17 Sep 19:07
069a785
Compare
Choose a tag to compare

Added

  • Nothing

Deprecated

  • Nothing

Fixed

  • Update Link.php #239, thanks to @Kasp42
  • Param: fix phpdoc with reference hint #253, thanks to @voku
  • Do not resolve types if it's not possible #254, thanks to @voku

Removed

  • Nothing

Security

  • Nothing

5.2.1

15 Aug 11:18
d870572
Compare
Choose a tag to compare

Added

  • Nothing

Deprecated

  • Nothing

Fixed

  • InvalidTag::flattenExceptionBacktrace() corrupts reference arguments #249, thanks to @nikic
  • Fix modified backtrace #250, thanks to @jaapio

Removed

  • Nothing

Security

  • Nothing

5.2.0

20 Jul 20:18
3170448
Compare
Choose a tag to compare

Added

Deprecated

  • Nothing

Fixed

  • Nothing

Removed

  • Nothing

Security

  • Nothing

5.1.0

25 Feb 19:44
cd72d39
Compare
Choose a tag to compare

Added

Deprecated

Fixed

Removed

  • Nothing

Security

  • Nothing

5.0.0

09 Feb 09:24
a488071
Compare
Choose a tag to compare

Added

  • Support for tag specialization as described in PRS-5 using :, thanks to @jaapio

Deprecated

  • Nothing

Fixed

  • restore [ to be allowed as the first character of tag body, thanks to @jaapio

Removed

  • Nothing

Security

  • Nothing

5.0.0-beta

27 Jan 20:17
93919e3
Compare
Choose a tag to compare
5.0.0-beta Pre-release
Pre-release

Added

  • Nothing

Deprecated

  • Nothing

Fixed

  • Fix invalid return of null in standard tag factory, thanks to @jaapio

Removed

  • Nothing

Security

  • Nothing

5.0.0-alpha9

16 Jan 09:10
cf16f63
Compare
Choose a tag to compare
5.0.0-alpha9 Pre-release
Pre-release

This patch release contains a fix to enable serialization of the refelected docblocks. Before release 5.0.0-alpha8 it was possible to serialize the result of the docblock factory. With the introduction of the InvalidTag which contained an exception this option was broken. This new version restores the option to serialize the docblock result. Which is recommended to do when you need to process a lot of docblocks for caching purposes.

Added

  • Nothing

Deprecated

  • Nothing

Fixed

  • Fix serialization error on InvalidTag, thanks to @jaapio

Removed

  • Nothing

Security

  • Nothing