From 7aac142a440a6befc5abcbf0e0077d810450e1ac Mon Sep 17 00:00:00 2001 From: Yannick Gottschalk Date: Wed, 28 Jun 2023 02:04:45 +0200 Subject: [PATCH] Added stub for PhpParser\Node\Name --- stubs/phpparser.phpstub | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/stubs/phpparser.phpstub b/stubs/phpparser.phpstub index 856cd2feccc..18fd86b35fd 100644 --- a/stubs/phpparser.phpstub +++ b/stubs/phpparser.phpstub @@ -20,3 +20,21 @@ abstract class CallLike extends Expr { */ public function getArgs(): array {} } + + +namespace PhpParser\Node; + +use PhpParser\NodeAbstract; + +class Name extends NodeAbstract { + /** + * @param string|string[]|self $name + * @param array $attributes + */ + public function __construct($name, array $attributes = []) {} + + /** + * @return non-empty-string + */ + public function toString(): string {} +}