Skip to content

Commit

Permalink
Added stub for PhpParser\Node\Name
Browse files Browse the repository at this point in the history
  • Loading branch information
ygottschalk committed Jun 28, 2023
1 parent 5a2f7c0 commit 7aac142
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions stubs/phpparser.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
}

0 comments on commit 7aac142

Please sign in to comment.