block34 Posted July 28, 2019 Share Posted July 28, 2019 $ 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? Quote Link to comment https://forums.phpfreaks.com/topic/309042-phpdoc-not-work/ Share on other sites More sharing options...
block34 Posted July 28, 2019 Author Share Posted July 28, 2019 Sorry, I'm wrong section Quote Link to comment https://forums.phpfreaks.com/topic/309042-phpdoc-not-work/#findComment-1568764 Share on other sites More sharing options...
block34 Posted July 28, 2019 Author Share Posted July 28, 2019 (edited) ++ 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 July 28, 2019 by block34 Quote Link to comment https://forums.phpfreaks.com/topic/309042-phpdoc-not-work/#findComment-1568765 Share on other sites More sharing options...
Barand Posted July 28, 2019 Share Posted July 28, 2019 (edited) So far you have posted this, or similar, in the Linux, Miscellaneous and PHP Coding forums. Stop spreading it all over the site - just append comments to your original topic (Linux forum) Moving this post. Edited July 28, 2019 by Barand Quote Link to comment https://forums.phpfreaks.com/topic/309042-phpdoc-not-work/#findComment-1568766 Share on other sites More sharing options...
block34 Posted July 28, 2019 Author Share Posted July 28, 2019 Sorry, first time I use this form Quote Link to comment https://forums.phpfreaks.com/topic/309042-phpdoc-not-work/#findComment-1568767 Share on other sites More sharing options...
Barand Posted July 28, 2019 Share Posted July 28, 2019 (edited) Then your first stop should have been the forum rules Edited July 28, 2019 by Barand Quote Link to comment https://forums.phpfreaks.com/topic/309042-phpdoc-not-work/#findComment-1568768 Share on other sites More sharing options...
gizmola Posted August 2, 2019 Share Posted August 2, 2019 This is an ongoing problem with phpDocumentor and the JMS Serializer package. See this: https://github.com/phpDocumentor/phpDocumentor2/issues/1868 You would probably have more luck working directly through the Github issue tracker. Quote Link to comment https://forums.phpfreaks.com/topic/309042-phpdoc-not-work/#findComment-1568839 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.