From e2766ca63690516ff7272e8f251233ecf1609279 Mon Sep 17 00:00:00 2001 From: Guilherme Blanco Date: Thu, 29 Apr 2010 22:59:51 -0300 Subject: [PATCH] Fixed double lookup on some cache instances by removing the contains() call in AnnotationReader. --- lib/Doctrine/Common/Annotations/AnnotationReader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/Common/Annotations/AnnotationReader.php b/lib/Doctrine/Common/Annotations/AnnotationReader.php index dbbf8dff6..f7d1c3a3b 100644 --- a/lib/Doctrine/Common/Annotations/AnnotationReader.php +++ b/lib/Doctrine/Common/Annotations/AnnotationReader.php @@ -184,7 +184,7 @@ class AnnotationReader // Attempt to grab data from cache if (($data = $this->_cache->fetch($cacheKey)) !== false) { return $data; - } + } $context = 'method ' . $method->getDeclaringClass()->getName() . '::' . $method->getName() . '()'; $annotations = $this->_parser->parse($method->getDocComment(), $context);