Remove package phpdoc annotation#781
Conversation
|
If ApiGen shows the namespaces, then the "packages" are not needed. I have 3 notes/questions:
|
`@subpackage` is deprecated and `@package` is mostly redundant with PHP namespaces. And while the annotations sometimes do not match the namespaces perfectly, which could be taken as a separate logical structure, having two separate hierarchies is IMO more confusing than helpful. Especially when the annotations are not even picked up by ApiGen. https://docs.phpdoc.org/2.9/references/phpdoc/tags/package.html https://docs.phpdoc.org/2.9/references/phpdoc/tags/subpackage.html ApiGen/ApiGen#1081 Removed with the following commands: sd '(?m)(?:\n^[ \t]+\*)?\n[ \t]+\*[ \t]+@Package.+?(?:\n[ \t]+\*[ \t]+@subpackage.+)?(\n[ \t]+\*/|(\n[ \t]*\*))' '$2$1' "$(rg -l @subpackage -t php)"
737ee1b to
4672473
Compare
It worked in older ApiGen versions, newer ones expect Markdown in PHPDoc descriptions.
I would rather handle that with #778.
Removed. |
@subpackageis deprecated and@packageis mostly redundant with PHP namespaces.And while the annotations sometimes do not match the namespaces perfectly, which could be taken as a separate logical structure, having two separate hierarchies is IMO more confusing than helpful. Especially when the annotations are not even picked up by ApiGen.
https://docs.phpdoc.org/2.9/references/phpdoc/tags/package.html
https://docs.phpdoc.org/2.9/references/phpdoc/tags/subpackage.html
ApiGen/ApiGen#1081
Removed with the following commands:
Fixes: #780