1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-26 11:54:52 +01:00

make Namespace_ builder return Namespace_

Hi, just a little detail. This should fix invalid return type of docs
This commit is contained in:
Tomas Votruba 2020-12-29 23:52:09 +01:00 committed by Nikita Popov
parent e3471d94d3
commit 3b87eb721c

View File

@ -37,7 +37,7 @@ class Namespace_ extends Declaration
/**
* Returns the built node.
*
* @return Node The built node
* @return Stmt\Namespace_ The built node
*/
public function getNode() : Node {
return new Stmt\Namespace_($this->name, $this->stmts, $this->attributes);