当出现无效标签时,添加更多信息以及指向 phpDocumentor 文档的链接

作者: mvriel创建于 2022年12月4日更新于 2022年12月4日

在 https://GitHub.com/phpDocumentor/phpDocumentor/issues/3378 问题中,出现了一些混淆,因为 Author 标签不支持描述。当 StandardTagFactory 遇到生成无效标签的情况时,如果它能够询问 Tag 类的预期格式以及文档链接,并在无效标签中包含这些信息,那么 phpDocumentor 就可以在错误报告中提供更好的错误消息。

内容来源: phpDocumentor/ReflectionDocBlock