This commit is contained in:
TiclemFR
2024-01-20 23:14:52 +01:00
parent a068f54957
commit 031f7071e6
881 changed files with 241469 additions and 247870 deletions

View File

@@ -5,27 +5,26 @@ namespace PhpParser\Node;
use PhpParser\Node;
use PhpParser\NodeAbstract;
class MatchArm extends NodeAbstract
{
/** @var null|Node\Expr[] */
public $conds;
class MatchArm extends NodeAbstract {
/** @var null|list<Node\Expr> */
public ?array $conds;
/** @var Node\Expr */
public $body;
public Expr $body;
/**
* @param null|Node\Expr[] $conds
* @param null|list<Node\Expr> $conds
*/
public function __construct($conds, Node\Expr $body, array $attributes = []) {
public function __construct(?array $conds, Node\Expr $body, array $attributes = []) {
$this->conds = $conds;
$this->body = $body;
$this->attributes = $attributes;
}
public function getSubNodeNames() : array {
public function getSubNodeNames(): array {
return ['conds', 'body'];
}
public function getType() : string {
public function getType(): string {
return 'MatchArm';
}
}