@@ -159,6 +159,9 @@ |
||
| 159 | 159 | return ''; |
| 160 | 160 | } |
| 161 | 161 | |
| 162 | + /** |
|
| 163 | + * @return string |
|
| 164 | + */ |
|
| 162 | 165 | protected function resolveScalarMagicConstNamespace() |
| 163 | 166 | { |
| 164 | 167 | if (method_exists($this->context, 'getNamespaceName')) { |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | |
| 11 | 11 | namespace Go\ParserReflection\NodeVisitor; |
| 12 | 12 | |
| 13 | -use PhpParser\Node\Name\FullyQualified; |
|
| 14 | 13 | use PhpParser\Node\Stmt\Declare_; |
| 15 | 14 | use PhpParser\Node\Stmt\Namespace_; |
| 16 | 15 | use PhpParser\NodeVisitorAbstract; |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | * Initializes reflection instance for given AST-node |
| 27 | 27 | * |
| 28 | 28 | * @param string|\Closure $functionName The name of the function to reflect or a closure. |
| 29 | - * @param Function_|null $functionNode Function node AST |
|
| 29 | + * @param Function_ $functionNode Function node AST |
|
| 30 | 30 | */ |
| 31 | 31 | public function __construct($functionName, Function_ $functionNode) |
| 32 | 32 | { |
@@ -160,6 +160,7 @@ |
||
| 160 | 160 | |
| 161 | 161 | /** |
| 162 | 162 | * @inheritDoc |
| 163 | + * @return string |
|
| 163 | 164 | */ |
| 164 | 165 | public function getName() |
| 165 | 166 | { |