Skip to content

DCOM-229: DocParser - add support for php5 MyClass::class call to get path of the class #536

doctrinebot opened this Issue Jan 6, 2014 · 1 comment

3 participants


Jira issue originally created by user umed:

When I try to use in my annotations


I get Semantical Error. Career is imported, so I dont want to use full class path name again. How about to add this feature to support by annotations?
We need to add some code like this (DocParser#Constant):

            if ($found) {
                 if ($const === 'class') {
                    return $className;

                 $identifier = $className . '::' . $const;

        if (!defined($identifier)) {
            throw AnnotationException::semanticalErrorConstants($identifier, $this->context);

        return constant($identifier);
@doctrinebot doctrinebot added the Bug label Dec 6, 2015
@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
Doctrine member

This issue was moved to doctrine/annotations#84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.