From 09055582affaa8043f04abce77add73d7dfd8dd7 Mon Sep 17 00:00:00 2001 From: "Barry vd. Heuvel" Date: Mon, 11 Aug 2014 13:05:28 +0200 Subject: [PATCH] Add correct context for inheritdoc Attempt 2 to fix #97 --- src/Method.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);