我正在使用PHPDocuementer,我一直在为我的类获取以下消息:
Parsing /code/vendor/prodigyview/helium/app.class.php
No summary for class \prodigyview\helium\He2App但是,当代码如下:
<?php
/**
* The main application for instantiaing the He2MVC Framework and bringing together the parts required for the system to work.
*
* The application is what is called with Helium is first initiliaed in the frontend controller. It will autoload the components,
* set the registry and then send the application into the router. The boostrap of the framework should be called sometime during
* this point.
*
* @package prodigyview\helium
*/
namespace prodigyview\helium;
class He2App extends \PVStaticInstance {
}我是不是遗漏了什么?
发布于 2018-12-10 22:25:33
您拥有的一个docblock应该向下移动到class行的上方。它的当前位置被解释为文件级文档块,而不是类级文档块。
完成此操作后,您可能会看到有关文件级文档块丢失的警告。只需在与当前示例相同的位置添加一个新的docblock即可。您可以使用您已经拥有的文件的确切副本,因为它的内容似乎适合文件和类。
https://stackoverflow.com/questions/53686327
复制相似问题