Jump to content

phpdoc not work


block34

Recommended Posts

$ phpdoc --directory src --target docs
PHP Fatal error:  Uncaught Doctrine\Common\Annotations\AnnotationException: [Semantical Error] The annotation "@JMS\Serializer\Annotation\Type" in property phpDocumentor\Configuration::$title does not exist, or could not be auto-loaded. in /tmp/tmp.1LouiU103a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php:54
Stack trace:
#0 /tmp/tmp.1LouiU103a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php(741): Doctrine\Common\Annotations\AnnotationException::semanticalError('The annotation ...')
#1 /tmp/tmp.1LouiU103a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php(663): Doctrine\Common\Annotations\DocParser->Annotation()
#2 /tmp/tmp.1LouiU103a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php(354): Doctrine\Common\Annotations\DocParser->Annotations()
#3 /tmp/tmp.1LouiU103a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php(254): Doctrine\Common\Annotations\DocParser->parse('/**\n     * @var...', 'pr in /tmp/tmp.1LouiU103a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php on line 54

Because?

Link to comment
Share on other sites

	++ composer require --dev phpdocumentor/phpdocumentor

	Using version ^2.9 for phpdocumentor/phpdocumentor

	./composer.json has been updated

	Loading composer repositories with package information

	Updating dependencies (including require-dev)

	Nothing to install or update

	Package herrera-io/json is abandoned, you should avoid using it. Use kherge/json instead.

	Package herrera-io/phar-update is abandoned, you should avoid using it. No replacement was suggested.

	Package kherge/version is abandoned, you should avoid using it. No replacement was suggested.

	Generating autoload files


<?php // src/Test.php
/**
 * Example.
 */
++ vendor/bin/phpdoc --directory src --target docs
PHP Fatal error:  Uncaught Doctrine\Common\Annotations\AnnotationException: [Semantical Error] The annotation "@JMS\Serializer\Annotation\Type" in property phpDocumentor\Configuration::$title does not exist, or could not be auto-loaded. in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php:54

Because?

Edited by block34
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.