Phpdoc No Summary found for this file

后端 未结 7 913
轮回少年
轮回少年 2021-01-11 12:09

I\'ve installed phpDoc on our server, set up etc. It\'s producing documentation correctly. We\'re using the \'Responsive\' template, however this error occurs regardless of

7条回答
  •  一向
    一向 (楼主)
    2021-01-11 12:20

    I got the same error because I use PHP > 7 and PHPDocumentor did not recognize the syntax, so this "default error" was provided.

    In my code, PHPDocumentor isn't able to parse null returns (?) in functions.

    I solved this issue going to this link

    https://github.com/phpDocumentor/phpDocumentor/releases

    I wgot the "PHP-7 Syntax support" and installed it

    wget https://github.com/phpDocumentor/phpDocumentor/releases/download/v2.9.0/phpDocumentor.phar
    sudo mv phpDocumentor.phar /usr/local/bin/phpdoc
    sudo chmod +x /usr/local/bin/phpdoc
    

    check version:

    phpdoc --version
    

    = phpDocumentor version v2.9.0

    It works with this phpDocumentor version

提交回复
热议问题