Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does someone know how to use phpdoc with serializer? #1185

Closed
diegosm opened this issue Apr 6, 2020 · 1 comment
Closed

Does someone know how to use phpdoc with serializer? #1185

diegosm opened this issue Apr 6, 2020 · 1 comment

Comments

@diegosm
Copy link

diegosm commented Apr 6, 2020

Q A
Bug report? no
Feature request? no
BC Break report? no
RFC? no

Steps required to reproduce the problem

  1. composer require phpdocumentor/phpdocumentor
  2. ./vendor/bin/phpdoc -d ./src -t ./docs/api

Actual Result

  • Fatal error: Uncaught Doctrine\Common\Annotations\AnnotationException: [Semantical Error] The annotation "@jms\Serializer\Annotation\Type" in property phpDocumentor\Configuration::$title was never imported. Did you maybe forget to add a "use" statement for this annotation? in /Volumes/Data/Code/diegosm/keycloak-admin/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php:54
    Stack trace:
    #0 /Volumes/Data/Code/diegosm/keycloak-admin/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php(733): Doctrine\Common\Annotations\AnnotationException::semanticalError('The annotation ...')
    Filter out non-identifiers from $data before calling find() #1 /Volumes/Data/Code/diegosm/keycloak-admin/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php(661): Doctrine\Common\Annotations\DocParser->Annotation()
    Update src/JMS/Serializer/Construction/DoctrineObjectConstructor.php #2 /Volumes/Data/Code/diegosm/keycloak-admin/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php(354): Doctrine\Common\Annotations\DocParser->Annotations()
    WIP Navigator context #3 /Volumes/Data/Code/diegosm/keycloak-admin/vendor in /Volumes/Data/Code/diegosm/keycloak-admin/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php on line 54
@goetas
Copy link
Collaborator

goetas commented Apr 6, 2020

This issue is about phpdoc, I suggest you to open the ticket in their repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants