X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fnikic%2Fphp-parser%2Flib%2FPhpParser%2FBuilder%2FNamespace_.php;fp=vendor%2Fnikic%2Fphp-parser%2Flib%2FPhpParser%2FBuilder%2FNamespace_.php;h=fe636c4ff499ef7c8d8c806808f09ca9e532857b;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=432fcc7f124cc84219bd26d584c68b9ba0ba5cd5;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/vendor/nikic/php-parser/lib/PhpParser/Builder/Namespace_.php b/vendor/nikic/php-parser/lib/PhpParser/Builder/Namespace_.php index 432fcc7f1..fe636c4ff 100644 --- a/vendor/nikic/php-parser/lib/PhpParser/Builder/Namespace_.php +++ b/vendor/nikic/php-parser/lib/PhpParser/Builder/Namespace_.php @@ -6,7 +6,7 @@ use PhpParser; use PhpParser\Node; use PhpParser\Node\Stmt; -class Namespace_ extends PhpParser\BuilderAbstract +class Namespace_ extends Declaration { private $name; private $stmts = array(); @@ -33,27 +33,12 @@ class Namespace_ extends PhpParser\BuilderAbstract return $this; } - /** - * Adds multiple statements. - * - * @param array $stmts The statements to add - * - * @return $this The builder instance (for fluid interface) - */ - public function addStmts(array $stmts) { - foreach ($stmts as $stmt) { - $this->addStmt($stmt); - } - - return $this; - } - /** * Returns the built node. * * @return Node The built node */ public function getNode() { - return new Stmt\Namespace_($this->name, $this->stmts); + return new Stmt\Namespace_($this->name, $this->stmts, $this->attributes); } }