正在生成所有其他文件的文档,但是对于src/pagination/paginator.php,不是。这是一个Symfony 4应用程序。
相关错误是:
error: Line 0: No summary was found for this file
没有摘要?那是错误的。该文件的结构似乎与其他文件没有什么不同。文件的放置和每个班级的放映。看看:
<?php
/**
* This file is part of DevDungeon.
*
* Copyright 2019 <my_name>.
*
* DevDungeon is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with DevDungeon. If not, see <https://www.gnu.org/licenses/>.
*/
namespace AppPagination;
use DoctrineORMQueryBuilder as DoctrineQueryBuilder;
use DoctrineORMToolsPaginationCountWalker;
use DoctrineORMToolsPaginationPaginator as DoctrinePaginator;
/**
* This class defines the pagination logic.
*/
class Paginator
{
/**
* @var int The number of items displayed on a single page
*/
private const PAGE_SIZE = 10;
(...)
通过生成的文档导航时,Paginator类只是缺少。走了。这里发生了什么?
我正在使用Windows系统上的PHAR文件。它位于项目的根部,就在SRC/外。GraphViz稍后手动安装。
这是我使用的命令:
php phpDocumentor.phar -d src/ -t docs/
这是输出:
Collecting files .. OK
Initializing parser .. OK
Parsing files
Parsing C:wamp64wwwdevdungeonsrcControllerBlogController.php
Warning: count(): Parameter must be an array or an object that implements Counta
ble in phar://C:/wamp64/www/devdungeon/phpDocumentor.phar/src/phpDocumentor/Plug
in/Core/Descriptor/Validator/Constraints/Functions/IsArgumentInDocBlockValidator
.php on line 33
Warning: count(): Parameter must be an array or an object that implements Counta
ble in phar://C:/wamp64/www/devdungeon/phpDocumentor.phar/src/phpDocumentor/Plug
in/Core/Descriptor/Validator/Constraints/Functions/IsArgumentInDocBlockValidator
.php on line 33
Warning: count(): Parameter must be an array or an object that implements Counta
ble in phar://C:/wamp64/www/devdungeon/phpDocumentor.phar/src/phpDocumentor/Plug
in/Core/Descriptor/Validator/Constraints/Functions/IsArgumentInDocBlockValidator
.php on line 33
Warning: count(): Parameter must be an array or an object that implements Counta
ble in phar://C:/wamp64/www/devdungeon/phpDocumentor.phar/src/phpDocumentor/Plug
in/Core/Descriptor/Validator/Constraints/Functions/IsArgumentInDocBlockValidator
.php on line 33
Warning: count(): Parameter must be an array or an object that implements Counta
ble in phar://C:/wamp64/www/devdungeon/phpDocumentor.phar/src/phpDocumentor/Plug
in/Core/Descriptor/Validator/Constraints/Functions/IsArgumentInDocBlockValidator
.php on line 33
Warning: count(): Parameter must be an array or an object that implements Counta
ble in phar://C:/wamp64/www/devdungeon/phpDocumentor.phar/src/phpDocumentor/Plug
in/Core/Descriptor/Validator/Constraints/Functions/IsArgumentInDocBlockValidator
.php on line 33
No summary for method __construct()
No summary for property $session
Parsing C:wamp64wwwdevdungeonsrcEntityPost.php
Parse Error: Syntax error, unexpected '?' on line 91 No summary was found for t
his file
Parsing C:wamp64wwwdevdungeonsrcFormPostType.php
Warning: count(): Parameter must be an array or an object that implements Counta
ble in phar://C:/wamp64/www/devdungeon/phpDocumentor.phar/src/phpDocumentor/Plug
in/Core/Descriptor/Validator/Constraints/Functions/IsArgumentInDocBlockValidator
.php on line 33
Warning: count(): Parameter must be an array or an object that implements Counta
ble in phar://C:/wamp64/www/devdungeon/phpDocumentor.phar/src/phpDocumentor/Plug
in/Core/Descriptor/Validator/Constraints/Functions/IsArgumentInDocBlockValidator
.php on line 33
Warning: count(): Parameter must be an array or an object that implements Counta
ble in phar://C:/wamp64/www/devdungeon/phpDocumentor.phar/src/phpDocumentor/Plug
in/Core/Descriptor/Validator/Constraints/Functions/IsArgumentInDocBlockValidator
.php on line 33
Warning: count(): Parameter must be an array or an object that implements Counta
ble in phar://C:/wamp64/www/devdungeon/phpDocumentor.phar/src/phpDocumentor/Plug
in/Core/Descriptor/Validator/Constraints/Functions/IsArgumentInDocBlockValidator
.php on line 33
No summary for method __construct()
No summary for method buildForm()
Parsing C:wamp64wwwdevdungeonsrcKernel.php
Parse Error: Syntax error, unexpected T_CONST, expecting T_FUNCTION on line 35
No summary was found for this file
Parsing C:wamp64wwwdevdungeonsrcMigrationsVersion20190724140200.php
Warning: count(): Parameter must be an array or an object that implements Counta
ble in phar://C:/wamp64/www/devdungeon/phpDocumentor.phar/src/phpDocumentor/Plug
in/Core/Descriptor/Validator/Constraints/Functions/IsArgumentInDocBlockValidator
.php on line 33
Warning: count(): Parameter must be an array or an object that implements Counta
ble in phar://C:/wamp64/www/devdungeon/phpDocumentor.phar/src/phpDocumentor/Plug
in/Core/Descriptor/Validator/Constraints/Functions/IsArgumentInDocBlockValidator
.php on line 33
No summary for method getDescription()
Argument $schema is missing from the Docblock of up
No summary for method up()
Argument $schema is missing from the Docblock of down
No summary for method down()
Parsing C:wamp64wwwdevdungeonsrcMigrationsVersion20190727112301.php
Warning: count(): Parameter must be an array or an object that implements Counta
ble in phar://C:/wamp64/www/devdungeon/phpDocumentor.phar/src/phpDocumentor/Plug
in/Core/Descriptor/Validator/Constraints/Functions/IsArgumentInDocBlockValidator
.php on line 33
Warning: count(): Parameter must be an array or an object that implements Counta
ble in phar://C:/wamp64/www/devdungeon/phpDocumentor.phar/src/phpDocumentor/Plug
in/Core/Descriptor/Validator/Constraints/Functions/IsArgumentInDocBlockValidator
.php on line 33
No summary for method getDescription()
Argument $schema is missing from the Docblock of up
No summary for method up()
Argument $schema is missing from the Docblock of down
No summary for method down()
Parsing C:wamp64wwwdevdungeonsrcPaginationPaginator.php
Parse Error: Syntax error, unexpected T_CONST, expecting T_FUNCTION on line 35
No summary was found for this file
Parsing C:wamp64wwwdevdungeonsrcRepositoryPostRepository.php
Warning: count(): Parameter must be an array or an object that implements Counta
ble in phar://C:/wamp64/www/devdungeon/phpDocumentor.phar/src/phpDocumentor/Plug
in/Core/Descriptor/Validator/Constraints/Functions/IsArgumentInDocBlockValidator
.php on line 33
Warning: count(): Parameter must be an array or an object that implements Counta
ble in phar://C:/wamp64/www/devdungeon/phpDocumentor.phar/src/phpDocumentor/Plug
in/Core/Descriptor/Validator/Constraints/Functions/IsArgumentInDocBlockValidator
.php on line 33
No summary for method __construct()
Parsing C:wamp64wwwdevdungeonsrcValidatorConstraintsContainsSlug.php
No summary for class AppValidatorConstraintsContainsSlug
Parsing C:wamp64wwwdevdungeonsrcValidatorConstraintsContainsSlugValidator
.php
Warning: count(): Parameter must be an array or an object that implements Counta
ble in phar://C:/wamp64/www/devdungeon/phpDocumentor.phar/src/phpDocumentor/Plug
in/Core/Descriptor/Validator/Constraints/Functions/IsArgumentInDocBlockValidator
.php on line 33
Warning: count(): Parameter must be an array or an object that implements Counta
ble in phar://C:/wamp64/www/devdungeon/phpDocumentor.phar/src/phpDocumentor/Plug
in/Core/Descriptor/Validator/Constraints/Functions/IsArgumentInDocBlockValidator
.php on line 33
Storing cache in "C:wamp64wwwdevdungeondocs" .. OK
Load cache .. 0.006s
Preparing template "clean" .. 0.007s
Preparing 17 transformations .. 0.000s
Build "elements" index .. 0.000s
Replace textual FQCNs with object aliases .. 0.001s
Resolve @link and @see tags in descriptions .. 0.001s
Enriches inline example tags with their sources .. 0.000s
Build "packages" index .. 0.001s
Build "namespaces" index and add namespaces to "elements" .. 0.000s
Collect all markers embedded in tags .. 0.000s
Transform analyzed project into artifacts ..
Applying 17 transformations
Initialize writer "phpDocumentorPluginCoreTransformerWriterFileIo"
Initialize writer "phpDocumentorPluginTwigWriterTwig"
Initialize writer "phpDocumentorPluginGraphsWriterGraph"
Execute transformation using writer "FileIo"
Execute transformation using writer "FileIo"
Execute transformation using writer "FileIo"
Execute transformation using writer "FileIo"
Execute transformation using writer "FileIo"
Execute transformation using writer "twig"
Execute transformation using writer "twig"
Execute transformation using writer "twig"
Execute transformation using writer "twig"
Execute transformation using writer "twig"
Execute transformation using writer "twig"
Execute transformation using writer "twig"
Execute transformation using writer "twig"
Execute transformation using writer "twig"
Execute transformation using writer "twig"
Execute transformation using writer "twig"
Execute transformation using writer "Graph"
0.543s
Analyze results and write report to log .. 0.000s
找到了原因:
/**
* @var int The number of items displayed on a single page
*/
private const PAGE_SIZE = 10;
可见性声明导致了它。删除private
解决了。
这有效:
/**
* @var int The number of items displayed on a single page
*/
const PAGE_SIZE = 10;
phpdocumentor2中的错误?