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,22 +4,21 @@ namespace PhpParser\Node;
use PhpParser\NodeAbstract;
class Const_ extends NodeAbstract
{
class Const_ extends NodeAbstract {
/** @var Identifier Name */
public $name;
public Identifier $name;
/** @var Expr Value */
public $value;
public Expr $value;
/** @var Name|null Namespaced name (if using NameResolver) */
public $namespacedName;
public ?Name $namespacedName;
/**
* Constructs a const node for use in class const and const statements.
*
* @param string|Identifier $name Name
* @param Expr $value Value
* @param array $attributes Additional attributes
* @param string|Identifier $name Name
* @param Expr $value Value
* @param array<string, mixed> $attributes Additional attributes
*/
public function __construct($name, Expr $value, array $attributes = []) {
$this->attributes = $attributes;
@@ -27,11 +26,11 @@ class Const_ extends NodeAbstract
$this->value = $value;
}
public function getSubNodeNames() : array {
public function getSubNodeNames(): array {
return ['name', 'value'];
}
public function getType() : string {
public function getType(): string {
return 'Const';
}
}