N°7176 - Update nikic/php-parser to 5.0.0 (#735)

This commit is contained in:
Benjamin Dalsass
2025-08-14 09:03:32 +02:00
committed by GitHub
parent a975f67bd5
commit 8bca3ac830
290 changed files with 11630 additions and 10372 deletions

View File

@@ -4,27 +4,26 @@ namespace PhpParser\Node\Stmt;
use PhpParser\Node;
class Unset_ extends Node\Stmt
{
class Unset_ extends Node\Stmt {
/** @var Node\Expr[] Variables to unset */
public $vars;
public array $vars;
/**
* Constructs an unset node.
*
* @param Node\Expr[] $vars Variables to unset
* @param array $attributes Additional attributes
* @param Node\Expr[] $vars Variables to unset
* @param array<string, mixed> $attributes Additional attributes
*/
public function __construct(array $vars, array $attributes = []) {
$this->attributes = $attributes;
$this->vars = $vars;
}
public function getSubNodeNames() : array {
public function getSubNodeNames(): array {
return ['vars'];
}
public function getType() : string {
public function getType(): string {
return 'Stmt_Unset';
}
}