Phpdocumentor: Attempted to call an undefined method named "getMethods" of class Fqsen

Created on 22 Feb 2020  路  5Comments  路  Source: phpDocumentor/phpDocumentor

Expected Behavior

The build passes

Actual Behavior

phpDocumentor is throwing the following exception:

Attempted to call an undefined method named "getMethods" of class "phpDocumentor\Reflection\Fqsen".

See below for the full trace.

Steps to Reproduce the Problem

  1. Clone https://github.com/nextcloud/server
  2. Run phpdoc -d lib/public/ -t "./api" -v

Your environment

  • Version used: 3.0.0-rc
  • Install method: phar
  • php version 7.4
  • Operating system and version (e.g. Ubuntu 16.04, Windows 7): Arch Linux
In MethodDescriptor.php line 241:

  [Symfony\Component\ErrorHandler\Error\UndefinedMethodError]                                          
  Attempted to call an undefined method named "getMethods" of class "phpDocumentor\Reflection\Fqsen".  


Exception trace:
  at phar:///home/jus/repos/nextcloud/server/phpdoc/src/phpDocumentor/Descriptor/MethodDescriptor.php:241
 phpDocumentor\Descriptor\MethodDescriptor->getInheritedElement() at phar:///home/jus/repos/nextcloud/server/phpdoc/src/phpDocumentor/Descriptor/DescriptorAbstract.php:171
 phpDocumentor\Descriptor\DescriptorAbstract->getDescription() at phar:///home/jus/repos/nextcloud/server/phpdoc/src/phpDocumentor/Compiler/Pass/ExampleTagsEnricher.php:66
 phpDocumentor\Compiler\Pass\ExampleTagsEnricher->replaceInlineExamples() at phar:///home/jus/repos/nextcloud/server/phpdoc/src/phpDocumentor/Compiler/Pass/ExampleTagsEnricher.php:57
 phpDocumentor\Compiler\Pass\ExampleTagsEnricher->execute() at phar:///home/jus/repos/nextcloud/server/phpdoc/src/phpDocumentor/Pipeline/Stage/Transform.php:161
 phpDocumentor\Pipeline\Stage\Transform->doTransform() at phar:///home/jus/repos/nextcloud/server/phpdoc/src/phpDocumentor/Pipeline/Stage/Transform.php:93
 phpDocumentor\Pipeline\Stage\Transform->__invoke() at phar:///home/jus/repos/nextcloud/server/phpdoc/vendor/league/pipeline/src/FingersCrossedProcessor.php:11
 League\Pipeline\FingersCrossedProcessor->process() at phar:///home/jus/repos/nextcloud/server/phpdoc/vendor/league/pipeline/src/Pipeline.php:34
 League\Pipeline\Pipeline->process() at phar:///home/jus/repos/nextcloud/server/phpdoc/vendor/league/pipeline/src/Pipeline.php:39
 League\Pipeline\Pipeline->__invoke() at phar:///home/jus/repos/nextcloud/server/phpdoc/vendor/league/pipeline/src/FingersCrossedProcessor.php:11
 League\Pipeline\FingersCrossedProcessor->process() at phar:///home/jus/repos/nextcloud/server/phpdoc/vendor/league/pipeline/src/Pipeline.php:34
 League\Pipeline\Pipeline->process() at phar:///home/jus/repos/nextcloud/server/phpdoc/vendor/league/pipeline/src/Pipeline.php:39
 League\Pipeline\Pipeline->__invoke() at phar:///home/jus/repos/nextcloud/server/phpdoc/src/phpDocumentor/Console/Command/Project/RunCommand.php:280
 phpDocumentor\Console\Command\Project\RunCommand->execute() at phar:///home/jus/repos/nextcloud/server/phpdoc/vendor/symfony/console/Command/Command.php:255
 Symfony\Component\Console\Command\Command->run() at phar:///home/jus/repos/nextcloud/server/phpdoc/vendor/symfony/console/Application.php:943
 Symfony\Component\Console\Application->doRunCommand() at phar:///home/jus/repos/nextcloud/server/phpdoc/vendor/symfony/framework-bundle/Console/Application.php:97
 Symfony\Bundle\FrameworkBundle\Console\Application->doRunCommand() at phar:///home/jus/repos/nextcloud/server/phpdoc/vendor/symfony/console/Application.php:265
 Symfony\Component\Console\Application->doRun() at phar:///home/jus/repos/nextcloud/server/phpdoc/vendor/symfony/framework-bundle/Console/Application.php:83
 Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at phar:///home/jus/repos/nextcloud/server/phpdoc/vendor/symfony/console/Application.php:141
 Symfony\Component\Console\Application->run() at phar:///home/jus/repos/nextcloud/server/phpdoc/bin/phpdoc:43
 require() at /home/jus/repos/nextcloud/server/phpdoc:14
bug

All 5 comments

Fixed in master. Will be part of the next release.

@jaapio any plans for that next release already? It's been a while :)

@nickvergessen Since this issue was closed we have released a new RC; and you can try our nightly builds from the Github Actions panel. With every commit we do on master; a new version of the phar is built and published there.

We currently do not have a definitive date for v3. Talking for myself: the corona situation has decimated my energy levels

tried this on the beta and the release candidate but no dice :(

Thanks for the hint with the github action artifacts, those work like a charm now. Also the new default theme looks amazing :+1:

@mvriel Take care of yourself and stay safe. :heart:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

neooblaster picture neooblaster  路  4Comments

niden picture niden  路  4Comments

ajthinking picture ajthinking  路  4Comments

joshmbg picture joshmbg  路  5Comments

h0gar picture h0gar  路  4Comments