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 0981a15 commit f399936
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions stubs/phpparser.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,26 @@ 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 = []) {
$this->attributes = $attributes;
$this->parts = self::prepareName($name);
}

/**
* @return non-empty-list<non-empty-string>
*/
public function getParts(): array {
return $this->parts;
}
}

0 comments on commit f399936

Please sign in to comment.