PHP 5.3 命名空间是否需要@package?
我已切换到 PHP 5.3 和命名空间。看来@package标签现在是多余的并且没有用了。
phpDoc 仍然需要它吗?或者我现在可以忽略这个标签吗?
谢谢
I've switched to PHP 5.3 and the namespaces. It seems like the @package tag is redundant and useless now.
Is it still required by phpDoc, or can I ignore this tag now ?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这不是必需的。
最新的文档现在指出,如果您使用命名空间并且不需要不同的文档结构,则应避免使用
@package
:http://phpdoc.org/docs/latest/references/phpdoc/标签/package.html
It is not required.
Latest doc now states that
@package
should be avoided if you use namespace and you don't need a different structure for documentation:http://phpdoc.org/docs/latest/references/phpdoc/tags/package.html
@package 与命名空间无关,而是与组织结果文档相关。
编辑 :
是否有支持 PHP 5.3 的 PHPDocumentor 替代品?
@package is not related to namespaces but to organizing the resulting documentation.
EDIT:
Is there any replacement for PHPDocumentor that supports PHP 5.3?