Permalink
Browse files

fix trying include classes if its ignored

  • Loading branch information...
1 parent 5fc86b3 commit 47922f69aebbf9585f0dab3d9f32c44155c440ef @f1nder committed Dec 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Doctrine/Common/Annotations/DocParser.php
View
4 lib/Doctrine/Common/Annotations/DocParser.php
@@ -620,10 +620,10 @@ private function Annotation()
$name = $this->imports[$loweredAlias];
}
$found = true;
- } elseif (isset($this->imports['__NAMESPACE__']) && $this->classExists($this->imports['__NAMESPACE__'].'\\'.$name)) {
+ } elseif (!isset($this->ignoredAnnotationNames[$name]) && isset($this->imports['__NAMESPACE__']) && $this->classExists($this->imports['__NAMESPACE__'].'\\'.$name)) {
$name = $this->imports['__NAMESPACE__'].'\\'.$name;
$found = true;
- } elseif ($this->classExists($name)) {
+ } elseif (!isset($this->ignoredAnnotationNames[$name]) && $this->classExists($name)) {
$found = true;
}

0 comments on commit 47922f6

Please sign in to comment.