代码之家  ›  专栏  ›  技术社区  ›  Devin Dixon

phpDocument没有类的摘要

  •  0
  • Devin Dixon  · 技术社区  · 7 年前

    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 {
    
    }
    

    我错过什么了吗?

    1 回复  |  直到 7 年前
        1
  •  1
  •   ashnazg    7 年前

    您拥有的一个docblock应该向下移动到刚好位于 class 线其当前位置被解释为文件级docblock,而不是类级docblock。

    这样做之后,你 可以 开始看到有关缺少文件级docblock的警告。只需在与当前示例相同的位置添加一个新docblock。你可以使用一个你已经在那里的副本,因为它的内容似乎适合文件和类。

    推荐文章