From ed94a34f6e4187280e6657b7aa0b6bc1cf2cb18e Mon Sep 17 00:00:00 2001 From: romanb Date: Mon, 15 Mar 2010 14:14:35 +0000 Subject: [PATCH] [2.0] Removed requirement to extend the Annotation base class, allowing any PHP class with an appropriate constructor to be used as an annotation. --- lib/Doctrine/Common/Annotations/Parser.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/Doctrine/Common/Annotations/Parser.php b/lib/Doctrine/Common/Annotations/Parser.php index 87363f015..c395d222b 100644 --- a/lib/Doctrine/Common/Annotations/Parser.php +++ b/lib/Doctrine/Common/Annotations/Parser.php @@ -149,7 +149,6 @@ class Parser if ( ! ($this->_lexer->lookahead['type'] === $token)) { $this->syntaxError($this->_lexer->getLiteral($token)); } - $this->_lexer->moveNext(); } @@ -254,8 +253,7 @@ class Parser (! $this->_isNestedAnnotation && $this->_lexer->lookahead != null && ! $this->_lexer->isNextToken(Lexer::T_OPEN_PARENTHESIS) && ! $this->_lexer->isNextToken(Lexer::T_AT)) || - ! class_exists($name, false) || - ! is_subclass_of($name, 'Doctrine\Common\Annotations\Annotation') + ! class_exists($name, false) ) { $this->_lexer->skipUntil(Lexer::T_AT);