From 018860205cb6a56989fe3115854ba8b92e7c4d82 Mon Sep 17 00:00:00 2001 From: Mauro Foti Date: Fri, 11 Oct 2013 18:17:33 +0200 Subject: [PATCH] [FIX] Issue 259 --- Parser/JmsMetadataParser.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Parser/JmsMetadataParser.php b/Parser/JmsMetadataParser.php index 1b3d149..a2266f9 100644 --- a/Parser/JmsMetadataParser.php +++ b/Parser/JmsMetadataParser.php @@ -120,7 +120,7 @@ class JmsMetadataParser implements ParserInterface 'dataType' => $dataType['normalized'], 'required' => false, //TODO: can't think of a good way to specify this one, JMS doesn't have a setting for this - 'description' => $this->getDescription($className, $item), + 'description' => $this->getDescription($item), 'readonly' => $item->readOnly, 'sinceVersion' => $item->sinceVersion, 'untilVersion' => $item->untilVersion, @@ -219,9 +219,9 @@ class JmsMetadataParser implements ParserInterface return null; } - protected function getDescription($className, PropertyMetadata $item) + protected function getDescription(PropertyMetadata $item) { - $ref = new \ReflectionClass($className); + $ref = new \ReflectionClass($item->class); if ($item instanceof VirtualPropertyMetadata) { $extracted = $this->commentExtractor->getDocCommentText($ref->getMethod($item->getter)); } else {