Add upgrade docs

This commit is contained in:
Jaapio
2026-01-07 21:22:53 +01:00
parent 721f1e766d
commit 02600c041e
3 changed files with 59 additions and 19 deletions
+6 -5
View File
@@ -1,9 +1,10 @@
Reconstitute a DocBlock
==============================
Reconstituting a DocBlock
=========================
ReflectionDocBlock not only allows you to read and interpret DocBlocks, but also to reconstruct them. This is useful if you need to add, remove, or modify tags in your codebase programmatically.
ReflectionDocBlock not only allows you to read and parse DocBlocks, but also to reconstruct them. This is useful if you need to add, remove, or modify tags in your codebase programmatically. For example, you might want to update type information, add custom tags, or strip deprecated tags as part of a refactoring or code generation process.
Below is a practical example of how to reconstitute a DocBlock using this library:
.. literalinclude:: ../examples/03-reconstituting-a-docblock.php
:language: php
:linenos:
:caption: examples/03-reconstituting-a-docblock.php