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 {} +}