Generate API documentation alpha

Cloud based service which generates API documentation for your GitHub based project using the great documentation generator ApiGen.

Status of FluentPDO (lichtner/fluentpdo)

Command: php -dmemory_limit=1024M /var/www/projects/apigen/apigen/apigen.php -s '/var/www/projects/apigen/repos/lichtner/fluentpdo/' -d '/var/www/projects/apigen/doc-progress/lichtner/fluentpdo' --charset=auto --download --debug --colors=no --progressbar=yes --tit
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/newrelic.so' - /usr/lib/php5/20131226/newrelic.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/newrelic.so' - /usr/lib/php5/20131226/newrelic.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Deprecated:  iconv_set_encoding(): Use of iconv.internal_encoding is deprecated in .../apigen/vendor/Nette/Nette/loader.php on line 30
ApiGen 3.0dev
-------------
Scanning .../repos/lichtner/fluentpdo
[===============================================================>] 100.00%  26MB
Found 9 errors

1. The TokenReflection library threw an exception while parsing the file .../repos/lichtner/fluentpdo/src/Query.php.

This can have two reasons: a) the source code in the file is not valid or b) you have just found a bug in the TokenReflection library.

If the license allows it please send the whole file or at least the following fragment describing where exacly is the problem along with the backtrace to apigen@apigen.org. Thank you!

The cause of the exception "Invalid namespace name "Envms\FluentPDO\Queries\"." was the { token (line 5) in the following part of Envms\FluentPDO source code:

  1: <?php
  2:
  3: namespace Envms\FluentPDO;
  4:
* 5: use Envms\FluentPDO\Queries\{Insert, Select, Update, Delete};
  6:
  7: /**
  8:  * FluentPDO is a quick and light PHP library for rapid query building. It features a smart join builder, which automatically creates table joins.
  9:  *
 10:  * For more information see readme.md
 11:  *
 12:  * @link      https://github.com/envms/fluentpdo
 13:  * @author    envms, start@env.ms
 14:  * @copyright 2012-2018 env.ms - Chris Bornhoft, Aldo Matelli, Stefan Yohansson, Kevin Sanabria, Marek Lichtner
 15:  * @license   https://www.gnu.org/licenses/gpl-3.0.en.html GNU General Public License, version 3.0
 16:  */
 17:
 18: /**
 19:  * Class Query
 20:  */
 21: class Query
 22: {
 23:
 24:     /** @var \PDO */
 25:     protected $pdo;
 26:     /** @var Structure|null */
 27:     protected $structure;
 28:
 29:     /** @var bool|callback */

The exception backtrace is following:

#0 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionElement.php(122): TokenReflection\ReflectionFileNamespace->parseChildren(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\ReflectionFile))
#1 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionBase.php(73): TokenReflection\ReflectionElement->parseStream(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\ReflectionFile))
#2 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionElement.php(104): TokenReflection\ReflectionBase->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker), Object(TokenReflection\ReflectionFile))
#3 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionFile.php(130): TokenReflection\ReflectionElement->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker), Object(TokenReflection\ReflectionFile))
#4 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionBase.php(73): TokenReflection\ReflectionFile->parseStream(Object(TokenReflection\Stream\StringStream), NULL)
#5 .../apigen/vendor/TokenReflection/TokenReflection/Broker.php(168): TokenReflection\ReflectionBase->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker))
#6 .../apigen/ApiGen/Generator.php(216): TokenReflection\Broker->processString('<?php\n\nnamespac...', '/var/www/projec...')
#7 .../apigen/ApiGen/Application.php(125): ApiGen\Generator->parse()
#8 .../apigen/ApiGen/Application.php(84): ApiGen\Application->parse()
#9 .../apigen/apigen.php(50): ApiGen\Application->run()
#10 {main}

2. The TokenReflection library threw an exception while parsing the file .../repos/lichtner/fluentpdo/src/Queries/Select.php.

This can have two reasons: a) the source code in the file is not valid or b) you have just found a bug in the TokenReflection library.

If the license allows it please send the whole file or at least the following fragment describing where exacly is the problem along with the backtrace to apigen@apigen.org. Thank you!

The cause of the exception "Invalid namespace name "Envms\FluentPDO\"." was the { token (line 5) in the following part of Envms\FluentPDO\Queries source code:

  1: <?php
  2:
  3: namespace Envms\FluentPDO\Queries;
  4:
* 5: use Envms\FluentPDO\{Exception, Query, Utilities};
  6:
  7: /**
  8:  * SELECT query builder
  9:  */
 10: class Select extends Common implements \Countable
 11: {
 12:
 13:     /** @var mixed */
 14:     private $fromTable;
 15:     /** @var mixed */
 16:     private $fromAlias;
 17:
 18:     /**
 19:      * SelectQuery constructor.
 20:      *
 21:      * @param Query     $fluent
 22:      * @param           $from
 23:      */

The exception backtrace is following:

#0 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionElement.php(122): TokenReflection\ReflectionFileNamespace->parseChildren(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\ReflectionFile))
#1 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionBase.php(73): TokenReflection\ReflectionElement->parseStream(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\ReflectionFile))
#2 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionElement.php(104): TokenReflection\ReflectionBase->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker), Object(TokenReflection\ReflectionFile))
#3 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionFile.php(130): TokenReflection\ReflectionElement->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker), Object(TokenReflection\ReflectionFile))
#4 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionBase.php(73): TokenReflection\ReflectionFile->parseStream(Object(TokenReflection\Stream\StringStream), NULL)
#5 .../apigen/vendor/TokenReflection/TokenReflection/Broker.php(168): TokenReflection\ReflectionBase->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker))
#6 .../apigen/ApiGen/Generator.php(216): TokenReflection\Broker->processString('<?php\n\nnamespac...', '/var/www/projec...')
#7 .../apigen/ApiGen/Application.php(125): ApiGen\Generator->parse()
#8 .../apigen/ApiGen/Application.php(84): ApiGen\Application->parse()
#9 .../apigen/apigen.php(50): ApiGen\Application->run()
#10 {main}

3. The TokenReflection library threw an exception while parsing the file .../repos/lichtner/fluentpdo/src/Queries/Update.php.

This can have two reasons: a) the source code in the file is not valid or b) you have just found a bug in the TokenReflection library.

If the license allows it please send the whole file or at least the following fragment describing where exacly is the problem along with the backtrace to apigen@apigen.org. Thank you!

The cause of the exception "Invalid namespace name "Envms\FluentPDO\"." was the { token (line 5) in the following part of Envms\FluentPDO\Queries source code:

  1: <?php
  2:
  3: namespace Envms\FluentPDO\Queries;
  4:
* 5: use Envms\FluentPDO\{Exception, Literal, Query};
  6:
  7: /**
  8:  * UPDATE query builder
  9:  *
 10:  * @method Update  leftJoin(string $statement) add LEFT JOIN to query
 11:  *                        ($statement can be 'table' name only or 'table:' means back reference)
 12:  * @method Update  innerJoin(string $statement) add INNER JOIN to query
 13:  *                        ($statement can be 'table' name only or 'table:' means back reference)
 14:  * @method Update  orderBy(string $column) add ORDER BY to query
 15:  * @method Update  limit(int $limit) add LIMIT to query
 16:  */
 17: class Update extends Common
 18: {
 19:
 20:     /**
 21:      * UpdateQuery constructor
 22:      *
 23:      * @param Query  $fluent
 24:      * @param string $table
 25:      */
 26:     public function __construct(Query $fluent, string $table)
 27:     {
 28:         $clauses

The exception backtrace is following:

#0 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionElement.php(122): TokenReflection\ReflectionFileNamespace->parseChildren(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\ReflectionFile))
#1 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionBase.php(73): TokenReflection\ReflectionElement->parseStream(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\ReflectionFile))
#2 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionElement.php(104): TokenReflection\ReflectionBase->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker), Object(TokenReflection\ReflectionFile))
#3 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionFile.php(130): TokenReflection\ReflectionElement->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker), Object(TokenReflection\ReflectionFile))
#4 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionBase.php(73): TokenReflection\ReflectionFile->parseStream(Object(TokenReflection\Stream\StringStream), NULL)
#5 .../apigen/vendor/TokenReflection/TokenReflection/Broker.php(168): TokenReflection\ReflectionBase->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker))
#6 .../apigen/ApiGen/Generator.php(216): TokenReflection\Broker->processString('<?php\n\nnamespac...', '/var/www/projec...')
#7 .../apigen/ApiGen/Application.php(125): ApiGen\Generator->parse()
#8 .../apigen/ApiGen/Application.php(84): ApiGen\Application->parse()
#9 .../apigen/apigen.php(50): ApiGen\Application->run()
#10 {main}

4. The TokenReflection library threw an exception while parsing the file .../repos/lichtner/fluentpdo/src/Queries/Json.php.

This can have two reasons: a) the source code in the file is not valid or b) you have just found a bug in the TokenReflection library.

If the license allows it please send the whole file or at least the following fragment describing where exacly is the problem along with the backtrace to apigen@apigen.org. Thank you!

The cause of the exception "Invalid namespace name "Envms\FluentPDO\"." was the { token (line 4) in the following part of Envms\FluentPDO\Queries source code:

  1: <?php
  2: namespace Envms\FluentPDO\Queries;
  3:
* 4: use Envms\FluentPDO\{Query, Utilities};
  5:
  6: /**
  7:  * Class Json
  8:  *
  9:  * @package Envms\FluentPDO\Queries
 10:  */
 11: class Json extends Common
 12: {
 13:
 14:     /** @var mixed */
 15:     protected $fromTable;
 16:     /** @var mixed */
 17:     protected $fromAlias;
 18:     /** @var boolean */

The exception backtrace is following:

#0 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionElement.php(122): TokenReflection\ReflectionFileNamespace->parseChildren(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\ReflectionFile))
#1 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionBase.php(73): TokenReflection\ReflectionElement->parseStream(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\ReflectionFile))
#2 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionElement.php(104): TokenReflection\ReflectionBase->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker), Object(TokenReflection\ReflectionFile))
#3 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionFile.php(130): TokenReflection\ReflectionElement->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker), Object(TokenReflection\ReflectionFile))
#4 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionBase.php(73): TokenReflection\ReflectionFile->parseStream(Object(TokenReflection\Stream\StringStream), NULL)
#5 .../apigen/vendor/TokenReflection/TokenReflection/Broker.php(168): TokenReflection\ReflectionBase->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker))
#6 .../apigen/ApiGen/Generator.php(216): TokenReflection\Broker->processString('<?php\nnamespace...', '/var/www/projec...')
#7 .../apigen/ApiGen/Application.php(125): ApiGen\Generator->parse()
#8 .../apigen/ApiGen/Application.php(84): ApiGen\Application->parse()
#9 .../apigen/apigen.php(50): ApiGen\Application->run()
#10 {main}

5. The TokenReflection library threw an exception while parsing the file .../repos/lichtner/fluentpdo/src/Queries/Delete.php.

This can have two reasons: a) the source code in the file is not valid or b) you have just found a bug in the TokenReflection library.

If the license allows it please send the whole file or at least the following fragment describing where exacly is the problem along with the backtrace to apigen@apigen.org. Thank you!

The cause of the exception "Invalid namespace name "Envms\FluentPDO\"." was the { token (line 5) in the following part of Envms\FluentPDO\Queries source code:

  1: <?php
  2:
  3: namespace Envms\FluentPDO\Queries;
  4:
* 5: use Envms\FluentPDO\{Exception, Query};
  6:
  7: /**
  8:  * DELETE query builder
  9:  *
 10:  * @method Delete  leftJoin(string $statement) add LEFT JOIN to query
 11:  *                        ($statement can be 'table' name only or 'table:' means back reference)
 12:  * @method Delete  innerJoin(string $statement) add INNER JOIN to query
 13:  *                        ($statement can be 'table' name only or 'table:' means back reference)
 14:  * @method Delete  from(string $table) add LIMIT to query
 15:  * @method Delete  orderBy(string $column) add ORDER BY to query
 16:  * @method Delete  limit(int $limit) add LIMIT to query
 17:  */
 18: class Delete extends Common
 19: {
 20:
 21:     private $ignore = false;
 22:
 23:     /**
 24:      * Delete constructor
 25:      *
 26:      * @param Query  $fluent
 27:      * @param string $table
 28:      */
 29:     public function __construct(Query $fluent, string $table)
 30:     {

The exception backtrace is following:

#0 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionElement.php(122): TokenReflection\ReflectionFileNamespace->parseChildren(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\ReflectionFile))
#1 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionBase.php(73): TokenReflection\ReflectionElement->parseStream(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\ReflectionFile))
#2 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionElement.php(104): TokenReflection\ReflectionBase->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker), Object(TokenReflection\ReflectionFile))
#3 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionFile.php(130): TokenReflection\ReflectionElement->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker), Object(TokenReflection\ReflectionFile))
#4 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionBase.php(73): TokenReflection\ReflectionFile->parseStream(Object(TokenReflection\Stream\StringStream), NULL)
#5 .../apigen/vendor/TokenReflection/TokenReflection/Broker.php(168): TokenReflection\ReflectionBase->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker))
#6 .../apigen/ApiGen/Generator.php(216): TokenReflection\Broker->processString('<?php\n\nnamespac...', '/var/www/projec...')
#7 .../apigen/ApiGen/Application.php(125): ApiGen\Generator->parse()
#8 .../apigen/ApiGen/Application.php(84): ApiGen\Application->parse()
#9 .../apigen/apigen.php(50): ApiGen\Application->run()
#10 {main}

6. The TokenReflection library threw an exception while parsing the file .../repos/lichtner/fluentpdo/src/Queries/Common.php.

This can have two reasons: a) the source code in the file is not valid or b) you have just found a bug in the TokenReflection library.

If the license allows it please send the whole file or at least the following fragment describing where exacly is the problem along with the backtrace to apigen@apigen.org. Thank you!

The cause of the exception "Invalid namespace name "Envms\FluentPDO\"." was the { token (line 5) in the following part of Envms\FluentPDO\Queries source code:

  1: <?php
  2:
  3: namespace Envms\FluentPDO\Queries;
  4:
* 5: use Envms\FluentPDO\{Exception, Literal, Utilities};
  6:
  7: /**
  8:  * CommonQuery add JOIN and WHERE clauses for (SELECT, UPDATE, DELETE)
  9:  *
 10:  * @method $this from(string $table) - add FROM to DELETE query
 11:  * @method $this leftJoin(string $statement) - add LEFT JOIN to query
 12:  *         $statement can be the 'table' name only or 'table:' to back reference the join
 13:  * @method $this rightJoin(string $statement) - add RIGHT JOIN to query
 14:  * @method $this innerJoin(string $statement) - add INNER JOIN to query
 15:  * @method $this outerJoin(string $statement) - add OUTER JOIN to query
 16:  * @method $this fullJoin(string $statement) - add FULL JOIN to query
 17:  * @method $this group(string $column) - add GROUP BY to query
 18:  * @method $this groupBy(string $column) - add GROUP BY to query
 19:  * @method $this having(string $column) - add HAVING query
 20:  * @method $this order(string $column) - add ORDER BY to query
 21:  * @method $this orderBy(string $column) - add ORDER BY to query
 22:  * @method $this limit(int $limit) - add LIMIT to query
 23:  * @method $this offset(int $offset) - add OFFSET to query
 24:  * @method $this comment(string $comment) - add COMMENT (--) to query
 25:  */
 26: abstract class Common extends Base
 27: {
 28:
 29:     /** @var array - methods which are allowed to be called by the magic method __call() */
 30:     private $validMethods = [
 31:         'comment',
 32:         'from'

The exception backtrace is following:

#0 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionElement.php(122): TokenReflection\ReflectionFileNamespace->parseChildren(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\ReflectionFile))
#1 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionBase.php(73): TokenReflection\ReflectionElement->parseStream(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\ReflectionFile))
#2 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionElement.php(104): TokenReflection\ReflectionBase->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker), Object(TokenReflection\ReflectionFile))
#3 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionFile.php(130): TokenReflection\ReflectionElement->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker), Object(TokenReflection\ReflectionFile))
#4 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionBase.php(73): TokenReflection\ReflectionFile->parseStream(Object(TokenReflection\Stream\StringStream), NULL)
#5 .../apigen/vendor/TokenReflection/TokenReflection/Broker.php(168): TokenReflection\ReflectionBase->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker))
#6 .../apigen/ApiGen/Generator.php(216): TokenReflection\Broker->processString('<?php\n\nnamespac...', '/var/www/projec...')
#7 .../apigen/ApiGen/Application.php(125): ApiGen\Generator->parse()
#8 .../apigen/ApiGen/Application.php(84): ApiGen\Application->parse()
#9 .../apigen/apigen.php(50): ApiGen\Application->run()
#10 {main}

7. The TokenReflection library threw an exception while parsing the file .../repos/lichtner/fluentpdo/src/Queries/Base.php.

This can have two reasons: a) the source code in the file is not valid or b) you have just found a bug in the TokenReflection library.

If the license allows it please send the whole file or at least the following fragment describing where exacly is the problem along with the backtrace to apigen@apigen.org. Thank you!

The cause of the exception "Invalid namespace name "Envms\FluentPDO\"." was the { token (line 5) in the following part of Envms\FluentPDO\Queries source code:

  1: <?php
  2:
  3: namespace Envms\FluentPDO\Queries;
  4:
* 5: use Envms\FluentPDO\{Exception, Literal, Query, Regex, Structure, Utilities};
  6:
  7: /**
  8:  * Base query builder
  9:  */
 10: abstract class Base implements \IteratorAggregate
 11: {
 12:
 13:     /** @var float */
 14:     private $totalTime;
 15:
 16:     /** @var float */
 17:     private $executionTime;
 18:
 19:     /** @var bool */

The exception backtrace is following:

#0 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionElement.php(122): TokenReflection\ReflectionFileNamespace->parseChildren(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\ReflectionFile))
#1 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionBase.php(73): TokenReflection\ReflectionElement->parseStream(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\ReflectionFile))
#2 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionElement.php(104): TokenReflection\ReflectionBase->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker), Object(TokenReflection\ReflectionFile))
#3 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionFile.php(130): TokenReflection\ReflectionElement->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker), Object(TokenReflection\ReflectionFile))
#4 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionBase.php(73): TokenReflection\ReflectionFile->parseStream(Object(TokenReflection\Stream\StringStream), NULL)
#5 .../apigen/vendor/TokenReflection/TokenReflection/Broker.php(168): TokenReflection\ReflectionBase->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker))
#6 .../apigen/ApiGen/Generator.php(216): TokenReflection\Broker->processString('<?php\n\nnamespac...', '/var/www/projec...')
#7 .../apigen/ApiGen/Application.php(125): ApiGen\Generator->parse()
#8 .../apigen/ApiGen/Application.php(84): ApiGen\Application->parse()
#9 .../apigen/apigen.php(50): ApiGen\Application->run()
#10 {main}

8. The TokenReflection library threw an exception while parsing the file .../repos/lichtner/fluentpdo/src/Queries/Insert.php.

This can have two reasons: a) the source code in the file is not valid or b) you have just found a bug in the TokenReflection library.

If the license allows it please send the whole file or at least the following fragment describing where exacly is the problem along with the backtrace to apigen@apigen.org. Thank you!

The cause of the exception "Invalid namespace name "Envms\FluentPDO\"." was the { token (line 5) in the following part of Envms\FluentPDO\Queries source code:

  1: <?php
  2:
  3: namespace Envms\FluentPDO\Queries;
  4:
* 5: use Envms\FluentPDO\{Exception, Literal, Query};
  6:
  7: /** INSERT query builder
  8:  */
  9: class Insert extends Base
 10: {
 11:
 12:     /** @var array */
 13:     private $columns = [];
 14:
 15:     /** @var array */
 16:     private $firstValue = [];
 17:
 18:     /** @var bool */

The exception backtrace is following:

#0 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionElement.php(122): TokenReflection\ReflectionFileNamespace->parseChildren(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\ReflectionFile))
#1 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionBase.php(73): TokenReflection\ReflectionElement->parseStream(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\ReflectionFile))
#2 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionElement.php(104): TokenReflection\ReflectionBase->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker), Object(TokenReflection\ReflectionFile))
#3 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionFile.php(130): TokenReflection\ReflectionElement->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker), Object(TokenReflection\ReflectionFile))
#4 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionBase.php(73): TokenReflection\ReflectionFile->parseStream(Object(TokenReflection\Stream\StringStream), NULL)
#5 .../apigen/vendor/TokenReflection/TokenReflection/Broker.php(168): TokenReflection\ReflectionBase->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker))
#6 .../apigen/ApiGen/Generator.php(216): TokenReflection\Broker->processString('<?php\n\nnamespac...', '/var/www/projec...')
#7 .../apigen/ApiGen/Application.php(125): ApiGen\Generator->parse()
#8 .../apigen/ApiGen/Application.php(84): ApiGen\Application->parse()
#9 .../apigen/apigen.php(50): ApiGen\Application->run()
#10 {main}

9. The TokenReflection library threw an exception while parsing the file .../repos/lichtner/fluentpdo/tests/UtilitiesTest.php.

This can have two reasons: a) the source code in the file is not valid or b) you have just found a bug in the TokenReflection library.

If the license allows it please send the whole file or at least the following fragment describing where exacly is the problem along with the backtrace to apigen@apigen.org. Thank you!

The cause of the exception "Invalid namespace name "Envms\FluentPDO\"." was the { token (line 6) in the following part of no-namespace source code:

  1: <?php
  2:
  3: require __DIR__ . '/_resources/init.php';
  4:
  5: use PHPUnit\Framework\TestCase;
* 6: use Envms\FluentPDO\{Query,Utilities};
  7:
  8: /**
  9:  * Class UtilitiesTest
 10:  */
 11: class UtilitiesTest extends TestCase
 12: {
 13:
 14:     /** @var Envms\FluentPDO\Query */
 15:     protected $fluent;
 16:
 17:     public function setUp()
 18:     {

The exception backtrace is following:

#0 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionElement.php(122): TokenReflection\ReflectionFileNamespace->parseChildren(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\ReflectionFile))
#1 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionBase.php(73): TokenReflection\ReflectionElement->parseStream(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\ReflectionFile))
#2 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionElement.php(104): TokenReflection\ReflectionBase->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker), Object(TokenReflection\ReflectionFile))
#3 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionFile.php(121): TokenReflection\ReflectionElement->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker), Object(TokenReflection\ReflectionFile))
#4 .../apigen/vendor/TokenReflection/TokenReflection/ReflectionBase.php(73): TokenReflection\ReflectionFile->parseStream(Object(TokenReflection\Stream\StringStream), NULL)
#5 .../apigen/vendor/TokenReflection/TokenReflection/Broker.php(168): TokenReflection\ReflectionBase->__construct(Object(TokenReflection\Stream\StringStream), Object(TokenReflection\Broker))
#6 .../apigen/ApiGen/Generator.php(216): TokenReflection\Broker->processString('<?php\n\nrequire ...', '/var/www/projec...')
#7 .../apigen/ApiGen/Application.php(125): ApiGen\Generator->parse()
#8 .../apigen/ApiGen/Application.php(84): ApiGen\Application->parse()
#9 .../apigen/apigen.php(50): ApiGen\Application->run()
#10 {main}

Found 12 classes, 0 constants, 0 functions and other 3 used PHP internal classes
Documentation for 12 classes, 0 constants, 0 functions and other 3 used PHP internal classes will be generated
Generating to directory .../doc-progress/lichtner/fluentpdo
[===============================================================>] 100.00%  22MB
Done. Total time: 2 sec, used: 26 MB RAM