Add correct context for inheritdoc

Attempt 2 to fix #97
This commit is contained in:
Barry vd. Heuvel
2014-08-11 13:05:28 +02:00
parent 4cfcabb63d
commit 09055582af
+1 -1
View File
@@ -297,7 +297,7 @@ class Method
$method = $reflectionMethod->getPrototype(); $method = $reflectionMethod->getPrototype();
} }
if ($method) { if ($method) {
$phpdoc = new DocBlock($method); $phpdoc = new DocBlock($method, new Context($method->getNamespaceName()));
if (strpos($phpdoc->getText(), '{@inheritdoc}') !== false) { if (strpos($phpdoc->getText(), '{@inheritdoc}') !== false) {
//Not at the end yet, try another parent/interface.. //Not at the end yet, try another parent/interface..
return $this->getInheritDoc($method); return $this->getInheritDoc($method);