diff --git a/src/Method.php b/src/Method.php index 0301561..177029a 100644 --- a/src/Method.php +++ b/src/Method.php @@ -297,7 +297,7 @@ class Method $method = $reflectionMethod->getPrototype(); } if ($method) { - $phpdoc = new DocBlock($method); + $phpdoc = new DocBlock($method, new Context($method->getNamespaceName())); if (strpos($phpdoc->getText(), '{@inheritdoc}') !== false) { //Not at the end yet, try another parent/interface.. return $this->getInheritDoc($method);