Install composer phpunit v9 for development testing

This commit is contained in:
2022-06-08 06:34:47 +09:00
parent 5b99da616b
commit b1079e1d24
1336 changed files with 139550 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
<?php declare(strict_types=1);
namespace PhpParser\Node\Stmt;
use PhpParser\Node;
/**
* Represents statements of type "expr;"
*/
class Expression extends Node\Stmt
{
/** @var Node\Expr Expression */
public $expr;
/**
* Constructs an expression statement.
*
* @param Node\Expr $expr Expression
* @param array $attributes Additional attributes
*/
public function __construct(Node\Expr $expr, array $attributes = []) {
$this->attributes = $attributes;
$this->expr = $expr;
}
public function getSubNodeNames() : array {
return ['expr'];
}
public function getType() : string {
return 'Stmt_Expression';
}
}